固定寬度整數型別(自 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 */