固定宽度整数类型(自 C99 起)
Version >= C99
头文件 <stdint.h>
提供了几个固定宽度的整数类型定义。这些类型是可选的,仅在平台具有相应宽度的整数类型且相应的带符号类型具有负值的二进制补码表示时才提供。
有关固定宽度类型的用法提示,请参阅备注部分。
/* commonly used types include */
uint32_t u32 = 32; /* exactly 32-bits wide */
uint8_t u8 = 255; /* exactly 8-bits wide */
int64_t i64 = -65 /* exactly 64 bit in two's complement representation */