Defines macros for specifying integer literal values.
These macros are defined in file stdint.h. They accept a numeric literal value and convert the value to generate a numeric constant for the types defined in file stdint.h. These macros follow the same naming convention of these types. Use macros beginning with INT to specify signed integer constants and macros beginning with UINT to specify unsigned integer constants.
These macros are:
#include <stdint.h> #include <inttypes.h> #include <stdio.h> int main(void) { uint32_t i = UINT32_C(371932); printf("%" PRId32 " %" PRIdMAX "\n", i, INTMAX_C(INTMAX_MAX)); return 0; }