我想知道什麼是POSIX數據類型的格式說明符。 我想用printf()打印它。POSIX數據類型的格式說明符
uint32_t some_long = 10;
uint16_t some_short = 20;
爲以下數據類型,請告訴我,格式說明
int8_t,uint8_t,int16_t
uint16_t,int32_t,uint32_t
sa_family_t,socklen_t
in_addr_t,in_port_t
u_char,u_short
u_int,u_long
[sprintf for unsigned _int64]可能重複(http://stackoverflow.com/questions/5140871/sprintf-for-unsigned-int64) –