uint8_t / uint16_t / uint32_t /uint64_t
2013-06-21 09:39
405 查看
这些数据类型是 C99 中定义的,具体定义在:/usr/include/stdint.h ISO C99: 7.18 Integer types <stdint.h>
格式化输出:
unit64_t %llu
unit32_t %u
unit16_t %hu
/* There is some amount of overlap with <sys/types.h> as known by inet code */ #ifndef __int8_t_defined # define __int8_t_defined typedef signed char int8_t; typedef short int int16_t; typedef int int32_t; # if __WORDSIZE == 64 typedef long int int64_t; # else __extension__ typedef long long int int64_t; # endif #endif /* Unsigned. */ typedef unsigned char uint8_t; typedef unsigned short int uint16_t; #ifndef __uint32_t_defined typedef unsigned int uint32_t; # define __uint32_t_defined #endif #if __WORDSIZE == 64 typedef unsigned long int uint64_t; #else __extension__ typedef unsigned long long int uint64_t; #endif
格式化输出:
unit64_t %llu
unit32_t %u
unit16_t %hu
相关文章推荐
- uint8_t / uint16_t / uint32_t /uint64_t 是什么数据类型
- uint8_t / uint16_t / uint32_t /uint64_t 的简单介绍(转载)
- uint8_t / uint16_t / uint32_t /uint64_t 的简单介绍
- uint8_t / uint16_t / uint32_t /uint64_t 是什么数据类型 - 大总结
- uint8_t / uint16_t / uint32_t /uint64_t 数据类型
- uint8_t / uint16_t / uint32_t /uint64_t
- uint8_t / uint16_t / uint32_t /uint64_t
- c/c++: uint8_t uint16_t uint32_t uint64_t size_t ssize_t数据类型
- uint8_t / uint16_t / uint32_t /uint64_t 是什么数据类型 - 大总结,看完全明白了
- uint8_t / uint16_t / uint32_t /uint64_数据类型
- uint8_t , uint16_t,uint32_t,uint64_t
- uint8_t / uint16_t / uint32_t /uint64_t 是什么数据类型
- uint8_t / uint16_t / uint32_t /uint64_t 是什么数据类型
- uint8_t / uint16_t / uint32_t /uint64_t 是什么数据类型
- uint8_t / uint16_t / uint32_t /uint64_t 是什么数据类型 - 大总结
- 浅析C语言之uint8_t / uint16_t / uint32_t /uint64_t
- c/c++: uint8_t uint16_t uint32_t uint64_t size_t ssize_t数据类型
- UINT8_T / UINT16_T / UINT32_T /UINT64_T讲解
- uint8_t / uint16_t / uint32_t /uint64_t 是什么数据类型
- uint8_t / uint16_t / uint32_t /uint64_t 的简单介绍