%" PRI*64"
int64_t id = 112233;
printf("id = %5" PRId64"",id);
这是一种跨平台的书写方式,主要是为了同时支持32位和64位操作系统
PRIu64 的定义在 inttypes.h 头文件里:
/* The ISO C99 standard specifies that these macros must only be
defined if explicitly requested. */
#if !defined __cplusplus || defined __STDC_FORMAT_MACROS
# if __WORDSIZ