[cinttypes.syn]

31 Input/output library [input.output]

31.13 C library files [c.files]

31.13.2 Header <cinttypes> synopsis [cinttypes.syn]

The contents and meaning of the header are the same as the C standard library header , with the following changes:

  • The header includes the header instead of , and
  • if and only if the type intmax_t designates an extended integer type ([basic.fundamental]), the following function signatures are added: constexpr intmax_t abs(intmax_t); constexpr imaxdiv_t div(intmax_t, intmax_t); which shall have the same semantics as the function signatures constexpr intmax_t imaxabs(intmax_t) and constexpr imaxdiv_t imaxdiv(intmax_t, intmax_t), respectively.

See also: ISO/IEC 9899:2024, 7.8

Each of the PRI macros listed in this subclause is defined if and only if the implementation defines the corresponding typedef-name in [cstdint.syn].

Each of the SCN macros listed in this subclause is defined if and only if the implementation defines the corresponding typedef-name in [cstdint.syn] and has a suitable fscanf length modifier for the type.

Each of the PRIB macros listed in this subclause is defined if and only if fprintf supports the B conversion specifier.