在64位的机器上,intptr_t和uintptr_t分别是long int、unsigned long int的别名;在32位的机器上,intptr_t和uintptr_t分别是int、unsigned int的别名。

/* Types for `void *' pointers.  */
#if __WORDSIZE == 64
# ifndef __intptr_t_defined
typedef long int		intptr_t;
#  define __intptr_t_defined
# endif
typedef unsigned long int	uintptr_t;
#else
# ifndef __intptr_t_defined
typedef int			intptr_t;
#  define __intptr_t_defined
# endif
typedef unsigned int		uintptr_t;
#endif

参考资料:https://blog.csdn.net/cs_zhanyb/article/details/16973379

相关文章:

  • 2021-11-05
  • 2022-02-12
  • 2021-09-21
  • 2021-12-01
  • 2021-06-15
  • 2021-11-06
  • 2021-12-17
  • 2022-02-25
猜你喜欢
  • 2022-12-23
  • 2021-11-17
  • 2021-07-06
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案