C99 standard header file containing string constants usable in format arguments to printf-type and scanf-type functions, for printing and scanning the portable integer types defined in stdint.h.
This header file contains some of the definitions mandated in Paragraph 7.8 of the ANSI/ISO C99 standard.
Since the long long
type is unhandled by printf and scanf, the definitions corresponding to 64-bit types, including intmax_t and uintmax_t, are omitted from this header. The octal format specifiers are omitted as well.
#define PRId8 "hd" |
Format specifier for printing an integer of type int8_t or uint8_t as a signed decimal integer.
This definition is the same as PRIi8. Definition mandated by the C99 standard.
#define PRId16 "hd" |
Format specifier for printing an integer of type int16_t or uint16_t as a signed decimal integer.
This definition is the same as PRIi16. Definition mandated by the C99 standard.
#define PRId32 "ld" |
Format specifier for printing an integer of type int32_t or uint32_t as a signed decimal integer.
This definition is the same as PRIi32. Definition mandated by the C99 standard.
#define PRIdFAST8 "hd" |
Format specifier for printing an integer of type int_fast8_t or uint_fast8_t as a signed decimal integer.
This definition is the same as PRIiFAST8. Definition mandated by the C99 standard.
#define PRIdFAST16 "hd" |
Format specifier for printing an integer of type int_fast16_t or uint_fast16_t as a signed decimal integer.
This definition is the same as PRIiFAST16. Definition mandated by the C99 standard.
#define PRIdFAST32 "ld" |
Format specifier for printing an integer of type int_fast32_t or uint_fast32_t as a signed decimal integer.
This definition is the same as PRIiFAST32. Definition mandated by the C99 standard.
#define PRIdLEAST8 "hd" |
Format specifier for printing an integer of type int_least8_t or uint_least8_t as a signed decimal integer.
This definition is the same as PRIiLEAST8. Definition mandated by the C99 standard.
#define PRIdLEAST16 "hd" |
Format specifier for printing an integer of type int_least16_t or uint_least16_t as a signed decimal integer.
This definition is the same as PRIiLEAST16. Definition mandated by the C99 standard.
#define PRIdLEAST32 "ld" |
Format specifier for printing an integer of type int_least32_t or uint_least32_t as a signed decimal integer.
This definition is the same as PRIiLEAST32. Definition mandated by the C99 standard.
#define PRIdPTR "ld" |
Format specifier for printing an integer of type intptr_t or uintptr_t as a signed decimal integer.
This definition is the same as PRIiPTR. Definition mandated by the C99 standard.
#define PRIi8 "hi" |
Format specifier for printing an integer of type int8_t or uint8_t as a signed decimal integer.
This definition is the same as PRId8. Definition mandated by the C99 standard.
#define PRIi16 "hi" |
Format specifier for printing an integer of type int16_t or uint16_t as a signed decimal integer.
This definition is the same as PRId16. Definition mandated by the C99 standard.
#define PRIi32 "li" |
Format specifier for printing an integer of type int32_t or uint32_t as a signed decimal integer.
This definition is the same as PRId32. Definition mandated by the C99 standard.
#define PRIiFAST8 "hi" |
Format specifier for printing an integer of type int_fast8_t or uint_fast8_t as a signed decimal integer.
This definition is the same as PRIdFAST8. Definition mandated by the C99 standard.
#define PRIiFAST16 "hi" |
Format specifier for printing an integer of type int_fast16_t or uint_fast16_t as a signed decimal integer.
This definition is the same as PRIdFAST16. Definition mandated by the C99 standard.
#define PRIiFAST32 "li" |
Format specifier for printing an integer of type int_fast32_t or uint_fast32_t as a signed decimal integer.
This definition is the same as PRIdFAST32. Definition mandated by the C99 standard.
#define PRIiLEAST8 "hi" |
Format specifier for printing an integer of type int_least8_t or uint_least8_t as a signed decimal integer.
This definition is the same as PRIdLEAST8. Definition mandated by the C99 standard.
#define PRIiLEAST16 "hi" |
Format specifier for printing an integer of type int_least16_t or uint_least16_t as a signed decimal integer.
This definition is the same as PRIdLEAST16. Definition mandated by the C99 standard.
#define PRIiLEAST32 "li" |
Format specifier for printing an integer of type int_least32_t or uint_least32_t as a signed decimal integer.
This definition is the same as PRIdLEAST32. Definition mandated by the C99 standard.
#define PRIiPTR "li" |
Format specifier for printing an integer of type intptr_t or uintptr_t as a signed decimal integer.
This definition is the same as PRIdPTR. Definition mandated by the C99 standard.
#define PRIu8 "hu" |
Format specifier for printing an integer of type int8_t or uint8_t as an unsigned decimal integer.
Definition mandated by the C99 standard.
#define PRIu16 "hu" |
Format specifier for printing an integer of type int16_t or uint16_t as an unsigned decimal integer.
Definition mandated by the C99 standard.
#define PRIu32 "lu" |
Format specifier for printing an integer of type int32_t or uint32_t as an unsigned decimal integer.
Definition mandated by the C99 standard.
#define PRIuFAST8 "hu" |
Format specifier for printing an integer of type int_fast8_t or uint_fast8_t as an unsigned decimal integer.
Definition mandated by the C99 standard.
#define PRIuFAST16 "hu" |
Format specifier for printing an integer of type int_fast16_t or uint_fast16_t as an unsigned decimal integer.
Definition mandated by the C99 standard.
#define PRIuFAST32 "lu" |
Format specifier for printing an integer of type int_fast32_t or uint_fast32_t as an unsigned decimal integer.
Definition mandated by the C99 standard.
#define PRIuLEAST8 "hu" |
Format specifier for printing an integer of type int_least8_t or uint_least8_t as an unsigned decimal integer.
Definition mandated by the C99 standard.
#define PRIuLEAST16 "hu" |
Format specifier for printing an integer of type int_least16_t or uint_least16_t as an unsigned decimal integer.
Definition mandated by the C99 standard.
#define PRIuLEAST32 "lu" |
Format specifier for printing an integer of type int_least32_t or uint_least32_t as an unsigned decimal integer.
Definition mandated by the C99 standard.
#define PRIuPTR "lu" |
Format specifier for printing an integer of type intptr_t or uintptr_t as an unsigned decimal integer.
Definition mandated by the C99 standard.
#define PRIx8 "hx" |
Format specifier for printing an integer of type int8_t or uint8_t as an unsigned hexadecimal (lowercase) integer.
Definition mandated by the C99 standard.
#define PRIX8 "hX" |
Format specifier for printing an integer of type int8_t or uint8_t as an unsigned hexadecimal (uppercase) integer.
Definition mandated by the C99 standard.
#define PRIx16 "hx" |
Format specifier for printing an integer of type int16_t or uint16_t as an unsigned hexadecimal (lowercase) integer.
Definition mandated by the C99 standard.
#define PRIX16 "hX" |
Format specifier for printing an integer of type int16_t or uint16_t as an unsigned hexadecimal (uppercase) integer.
Definition mandated by the C99 standard.
#define PRIx32 "lx" |
Format specifier for printing an integer of type int32_t or uint32_t as an unsigned hexadecimal (lowercase) integer.
Definition mandated by the C99 standard.
#define PRIX32 "lX" |
Format specifier for printing an integer of type int32_t or uint32_t as an unsigned hexadecimal (uppercase) integer.
Definition mandated by the C99 standard.
#define PRIxFAST8 "hx" |
Format specifier for printing an integer of type int_fast8_t or uint_fast8_t as an unsigned hexadecimal (lowercase) integer.
Definition mandated by the C99 standard.
#define PRIXFAST8 "hX" |
Format specifier for printing an integer of type int_fast8_t or uint_fast8_t as an unsigned hexadecimal (uppercase) integer.
Definition mandated by the C99 standard.
#define PRIxFAST16 "hx" |
Format specifier for printing an integer of type int_fast16_t or uint_fast16_t as an unsigned hexadecimal (lowercase) integer.
Definition mandated by the C99 standard.
#define PRIXFAST16 "hX" |
Format specifier for printing an integer of type int_fast16_t or uint_fast16_t as an unsigned hexadecimal (uppercase) integer.
Definition mandated by the C99 standard.
#define PRIxFAST32 "lx" |
Format specifier for printing an integer of type int_fast32_t or uint_fast32_t as an unsigned hexadecimal (lowercase) integer.
Definition mandated by the C99 standard.
#define PRIXFAST32 "lX" |
Format specifier for printing an integer of type int_fast32_t or uint_fast32_t as an unsigned hexadecimal (uppercase) integer.
Definition mandated by the C99 standard.
#define PRIxLEAST8 "hx" |
Format specifier for printing an integer of type int_least8_t or uint_least8_t as an unsigned hexadecimal (lowercase) integer.
Definition mandated by the C99 standard.
#define PRIXLEAST8 "hX" |
Format specifier for printing an integer of type int_least8_t or uint_least8_t as an unsigned hexadecimal (uppercase) integer.
Definition mandated by the C99 standard.
#define PRIxLEAST16 "hx" |
Format specifier for printing an integer of type int_least16_t or uint_least16_t as an unsigned hexadecimal (lowercase) integer.
Definition mandated by the C99 standard.
#define PRIXLEAST16 "hX" |
Format specifier for printing an integer of type int_least16_t or uint_least16_t as an unsigned hexadecimal (uppercase) integer.
Definition mandated by the C99 standard.
#define PRIxLEAST32 "lx" |
Format specifier for printing an integer of type int_least32_t or uint_least32_t as an unsigned hexadecimal (lowercase) integer.
Definition mandated by the C99 standard.
#define PRIXLEAST32 "lX" |
Format specifier for printing an integer of type int_least32_t or uint_least32_t as an unsigned hexadecimal (uppercase) integer.
Definition mandated by the C99 standard.
#define PRIxPTR "lx" |
Format specifier for printing an integer of type intptr_t or uintptr_t as an unsigned hexadecimal (lowercase) integer.
Definition mandated by the C99 standard.
#define PRIXPTR "lX" |
Format specifier for printing an integer of type intptr_t or uintptr_t as an unsigned hexadecimal (uppercase) integer.
Definition mandated by the C99 standard.
#define SCNd8 "hd" |
Format specifier for scanning an integer of type int8_t or uint8_t written as a signed decimal integer.
This definition is the same as SCNi8. Definition mandated by the C99 standard.
#define SCNd16 "hd" |
Format specifier for scanning an integer of type int16_t or uint16_t written as a signed decimal integer.
This definition is the same as SCNi16. Definition mandated by the C99 standard.
#define SCNd32 "ld" |
Format specifier for scanning an integer of type int32_t or uint32_t written as a signed decimal integer.
This definition is the same as SCNi32. Definition mandated by the C99 standard.
#define SCNdFAST8 "hd" |
Format specifier for scanning an integer of type int_fast8_t or uint_fast8_t written as a signed decimal integer.
This definition is the same as SCNiFAST8. Definition mandated by the C99 standard.
#define SCNdFAST16 "hd" |
Format specifier for scanning an integer of type int_fast16_t or uint_fast16_t written as a signed decimal integer.
This definition is the same as SCNiFAST16. Definition mandated by the C99 standard.
#define SCNdFAST32 "ld" |
Format specifier for scanning an integer of type int_fast32_t or uint_fast32_t written as a signed decimal integer.
This definition is the same as SCNiFAST32. Definition mandated by the C99 standard.
#define SCNdLEAST8 "hd" |
Format specifier for scanning an integer of type int_least8_t or uint_least8_t written as a signed decimal integer.
This definition is the same as SCNiLEAST8. Definition mandated by the C99 standard.
#define SCNdLEAST16 "hd" |
Format specifier for scanning an integer of type int_least16_t or uint_least16_t written as a signed decimal integer.
This definition is the same as SCNiLEAST16. Definition mandated by the C99 standard.
#define SCNdLEAST32 "ld" |
Format specifier for scanning an integer of type int_least32_t or uint_least32_t written as a signed decimal integer.
This definition is the same as SCNiLEAST32. Definition mandated by the C99 standard.
#define SCNdPTR "ld" |
Format specifier for scanning an integer of type intptr_t or uintptr_t written as a signed decimal integer.
This definition is the same as SCNiPTR. Definition mandated by the C99 standard.
#define SCNi8 "hi" |
Format specifier for scanning an integer of type int8_t or uint8_t written as a signed decimal integer.
This definition is the same as SCNd8. Definition mandated by the C99 standard.
#define SCNi16 "hi" |
Format specifier for scanning an integer of type int16_t or uint16_t written as a signed decimal integer.
This definition is the same as SCNd16. Definition mandated by the C99 standard.
#define SCNi32 "li" |
Format specifier for scanning an integer of type int32_t or uint32_t written as a signed decimal integer.
This definition is the same as SCNd32. Definition mandated by the C99 standard.
#define SCNiFAST8 "hi" |
Format specifier for scanning an integer of type int_fast8_t or uint_fast8_t written as a signed decimal integer.
This definition is the same as SCNdFAST8. Definition mandated by the C99 standard.
#define SCNiFAST16 "hi" |
Format specifier for scanning an integer of type int_fast16_t or uint_fast16_t written as a signed decimal integer.
This definition is the same as SCNdFAST16. Definition mandated by the C99 standard.
#define SCNiFAST32 "li" |
Format specifier for scanning an integer of type int_fast32_t or uint_fast32_t written as a signed decimal integer.
This definition is the same as SCNdFAST32. Definition mandated by the C99 standard.
#define SCNiLEAST8 "hi" |
Format specifier for scanning an integer of type int_least8_t or uint_least8_t written as a signed decimal integer.
This definition is the same as SCNdLEAST8. Definition mandated by the C99 standard.
#define SCNiLEAST16 "hi" |
Format specifier for scanning an integer of type int_least16_t or uint_least16_t written as a signed decimal integer.
This definition is the same as SCNdLEAST16. Definition mandated by the C99 standard.
#define SCNiLEAST32 "li" |
Format specifier for scanning an integer of type int_least32_t or uint_least32_t written as a signed decimal integer.
This definition is the same as SCNdLEAST32. Definition mandated by the C99 standard.
#define SCNiPTR "li" |
Format specifier for scanning an integer of type intptr_t or uintptr_t written as a signed decimal integer.
This definition is the same as SCNdPTR. Definition mandated by the C99 standard.
#define SCNu8 "hu" |
Format specifier for scanning an integer of type int8_t or uint8_t written as an unsigned decimal integer.
Definition mandated by the C99 standard.
#define SCNu16 "hu" |
Format specifier for scanning an integer of type int16_t or uint16_t written as an unsigned decimal integer.
Definition mandated by the C99 standard.
#define SCNu32 "lu" |
Format specifier for scanning an integer of type int32_t or uint32_t written as an unsigned decimal integer.
Definition mandated by the C99 standard.
#define SCNuFAST8 "hu" |
Format specifier for scanning an integer of type int_fast8_t or uint_fast8_t written as an unsigned decimal integer.
Definition mandated by the C99 standard.
#define SCNuFAST16 "hu" |
Format specifier for scanning an integer of type int_fast16_t or uint_fast16_t written as an unsigned decimal integer.
Definition mandated by the C99 standard.
#define SCNuFAST32 "lu" |
Format specifier for scanning an integer of type int_fast32_t or uint_fast32_t written as an unsigned decimal integer.
Definition mandated by the C99 standard.
#define SCNuLEAST8 "hu" |
Format specifier for scanning an integer of type int_least8_t or uint_least8_t written as an unsigned decimal integer.
Definition mandated by the C99 standard.
#define SCNuLEAST16 "hu" |
Format specifier for scanning an integer of type int_least16_t or uint_least16_t written as an unsigned decimal integer.
Definition mandated by the C99 standard.
#define SCNuLEAST32 "lu" |
Format specifier for scanning an integer of type int_least32_t or uint_least32_t written as an unsigned decimal integer.
Definition mandated by the C99 standard.
#define SCNuPTR "lu" |
Format specifier for scanning an integer of type intptr_t or uintptr_t written as an unsigned decimal integer.
Definition mandated by the C99 standard.
#define SCNx8 "hx" |
Format specifier for scanning an integer of type int8_t or uint8_t written as an unsigned hexadecimal (lowercase) integer.
Definition mandated by the C99 standard.
#define SCNx16 "hx" |
Format specifier for scanning an integer of type int16_t or uint16_t written as an unsigned hexadecimal (lowercase) integer.
Definition mandated by the C99 standard.
#define SCNx32 "lx" |
Format specifier for scanning an integer of type int32_t or uint32_t written as an unsigned hexadecimal (lowercase) integer.
Definition mandated by the C99 standard.
#define SCNxFAST8 "hx" |
Format specifier for scanning an integer of type int_fast8_t or uint_fast8_t written as an unsigned hexadecimal (lowercase) integer.
Definition mandated by the C99 standard.
#define SCNxFAST16 "hx" |
Format specifier for scanning an integer of type int_fast16_t or uint_fast16_t written as an unsigned hexadecimal (lowercase) integer.
Definition mandated by the C99 standard.
#define SCNxFAST32 "lx" |
Format specifier for scanning an integer of type int_fast32_t or uint_fast32_t written as an unsigned hexadecimal (lowercase) integer.
Definition mandated by the C99 standard.
#define SCNxLEAST8 "hx" |
Format specifier for scanning an integer of type int_least8_t or uint_least8_t written as an unsigned hexadecimal (lowercase) integer.
Definition mandated by the C99 standard.
#define SCNxLEAST16 "hx" |
Format specifier for scanning an integer of type int_least16_t or uint_least16_t written as an unsigned hexadecimal (lowercase) integer.
Definition mandated by the C99 standard.
#define SCNxLEAST32 "lx" |
Format specifier for scanning an integer of type int_least32_t or uint_least32_t written as an unsigned hexadecimal (lowercase) integer.
Definition mandated by the C99 standard.
#define SCNxPTR "lx" |
Format specifier for scanning an integer of type intptr_t or uintptr_t written as an unsigned hexadecimal (lowercase) integer.
Definition mandated by the C99 standard.