There are no notfications.

inttypes.h

The inttypes.h header includes the stdint.h header and extends it with additional macros and functions.

Excluding macros PRIdFAST8, PRIdFAST16, PRIdFAST32, PRIdFAST64, PRIdLEAST8, PRIdLEAST16, PRIdLEAST32, PRIdLEAST64, PRIdMAX, PRIdPTR, PRIiFAST8, PRIiFAST16, PRIiFAST32, PRIiFAST64, PRIiLEAST8, PRIiLEAST16, PRIiLEAST32, PRIiLEAST64, PRIiMAX, PRIiPTR, PRIoFAST8, PRIoFAST16, PRIoFAST32, PRIoFAST64, PRIoLEAST8, PRIoLEAST16, PRIoLEAST32, PRIoLEAST64, PRIoMAX, PRIoPTR, PRIuFAST8, PRIuFAST16, PRIuFAST32, PRIuFAST64, PRIuLEAST8, PRIuLEAST16, PRIuLEAST32, PRIuLEAST64, PRIuMAX, PRIuPTR, PRIxFAST8, PRIxFAST16, PRIxFAST32, PRIxFAST64, PRIXFAST8, PRIXFAST16, PRIXFAST32, PRIXFAST64, PRIxLEAST8, PRIxLEAST16, PRIxLEAST32, PRIxLEAST64, PRIXLEAST8, PRIXLEAST16, PRIXLEAST32, PRIXLEAST64, PRIxMAX, PRIXMAX, PRIxPTR, PRIXPTR, SCNdFAST8, SCNdFAST16, SCNdFAST32, SCNdFAST64, SCNdLEAST8, SCNdLEAST16, SCNdLEAST32, SCNdLEAST64, SCNdMAX, SCNdPTR, SCNiFAST8, SCNiFAST16, SCNiFAST32, SCNiFAST64, SCNiLEAST8, SCNiLEAST16, SCNiLEAST32, SCNiLEAST64, SCNiMAX, SCNiPTR, SCNoFAST8, SCNoFAST16, SCNoFAST32, SCNoFAST64, SCNoLEAST8, SCNoLEAST16, SCNoLEAST32, SCNoLEAST64, SCNoMAX, SCNoPTR, SCNuFAST8, SCNuFAST16, SCNuFAST32, SCNuFAST64, SCNuLEAST8, SCNuLEAST16, SCNuLEAST32, SCNuLEAST64, SCNuMAX, SCNuPTR, SCNxFAST8, SCNxFAST16, SCNxFAST32, SCNxFAST64, SCNxLEAST8, SCNxLEAST16, SCNxLEAST32, SCNxLEAST64, SCNxMAX and SCNxPTR and functions imaxabs, imaxdiv, strtoimax, strtoumax, wcstoimax and wcstoumax.

Macros

For printf-like functions

Signed decimal integer value

PRId8 | PRIi8
Expands to d | i
PRId16 | PRIi16
Expands to d | i
PRId32 | PRIi32
Expands to d | i
PRId64 | PRIi64
Expands to:
  • (x86) lld | lli
  • (x86-64) ld | li

Unsigned decimal integer value

PRIu8
Expands to u
PRIu16
Expands to u
PRIu32
Expands to u
PRIu64
Expands to:
  • (x86) llu
  • (x86-64) lu

Unsigned octal integer value

PRIo8
Expands to o
PRIo16
Expands to o
PRIo32
Expands to o
PRIo64
Expands to:
  • (x86) llo
  • (x86-64) lo

Unsigned lowercase hexadecimal integer value

PRIx8
Expands to x
PRIx16
Expands to x
PRIx32
Expands to x
PRIx64
Expands to:
  • (x86) llx
  • (x86-64) lx

Unsigned uppercase hexadecimal integer value

PRIX8
Expands to X
PRIX16
Expands to X
PRIX32
Expands to X
PRIX64
Expands to:
  • (x86) llX
  • (x86-64) lX

For scanf-like functions

Signed decimal integer value

SCNd8
Expands to hhd
SCNd16
Expands to hd
SCNd32
Expands to d
SCNd64
Expands to:
  • (x86) lld
  • (x86-64) ld

Signed integer value (base undetermined)

SCNi8
Expands to hhi
SCNi16
Expands to hi
SCNi32
Expands to i
SCNi64
Expands to:
  • (x86) lli
  • (x86-64) li

Unsigned decimal integer value

SCNu8
Expands to hhu
SCNu16
Expands to hu
SCNu32
Expands to u
SCNu64
Expands to:
  • (x86) llu
  • (x86-64) lu

Unsigned octal integer value

SCNo8
Expands to hho
SCNo16
Expands to ho
SCNo32
Expands to o
SCNo64
Expands to:
  • (x86) llo
  • (x86-64) lo

Unsigned hexadecimal integer value

SCNx8
Expands to hhx
SCNx16
Expands to hx
SCNx32
Expands to x
SCNx64
Expands to:
  • (x86) llx
  • (x86-64) lx

External links