[cinttypes.syn] (original) (raw)
31 Input/output library [input.output]
31.13 C library files [c.files]
31.13.2 Header 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
- intmax_t and uintmax_t are not required to be able to represent all values of extended integer types wider than long long and unsigned long long, respectively, 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 signaturesconstexpr intmax_t imaxabs(intmax_t) andconstexpr imaxdiv_t imaxdiv(intmax_t, intmax_t), respectively.
See also: ISO/IEC 9899:2018, 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.