Defines macros that describe the numeric properties of the types defined in
stdint.h and other files in the standard library.
Macro names beginning with
INT specify properties for signed integer types and names beginning with
UINT specify properties for unsigned integers. A macro name ending with
MIN specifies the minimum value that its corresponding signed integer type may represent. An unsigned integer type's minimum value is always 0. A macro name ending with
MAX defines the maximum value that its corresponding integer value can represent.
These limit values are:
- Exact-width integer limits - These macros describe the limits of the exact-width integer types defined in file
stddint.h. The names of these macros are
INTn_MIN,
INTn_MAX, and
UINTn_MAX, where n represents the number of bits in the corresponding exactwidth integer type.
- Minimum-width integer limits - These macros describe the limits of the minimum-width integer types defined in file
stddint.h. The names of these macros are
INT_LEASTn_MIN,
INT_LEASTn_MAX, and
UINT_LEASTn_MAX, where n represents the number of bits in the corresponding minimum-width integer type.
- Fastest integers - These macros describe the limits of the fastest-width integer types defined in file
stddint.h. The names of these macros are
INT_FASTn_MIN,
INT_FASTn_MAX, and
UINT_FASTn_MAX, where n represents the number of bits in the corresponding fastest-width integer type.
- Pointer-width integer limits - These macros describe the limits of the pointer-width integer types defined in file
stddint.h. The names of these macros are
INTPTR_MIN,
INTPTR_MAX, and
UINTPTR_MAX.
- Greatest-width integer limits - These macros describe the limits of the greatest-width integer types defined in file stddint.h. The names of these macros are
INTMAX_MIN,
INTMAX_MAX, and
UINTMAX_MAX.
- Pointer difference limits - These macros describe the limits of the ptrdiff_t type defined in file
stddef.h. The names of these macros are
PTRDIFF_MIN, PTRDIFF_MAX.
- Atomic signal value limits - These macros describe the limits of the
sig_atomic_t type defined in file
signal.h. The names of these macros are
SIG_ATOMIC_MIN,
SIG_ATOMIC_MAX.
- Operator
sizeof() value limits - This macro describe the limit of the
size_t type defined in file stddef.h. The name of this macros is
SIZE_MAX.
- Wide character value limits - These macros describe the limits of the
wchar_t type defined in file stddef.h. The names of these macros are
WCHAR_MIN, WCHAR_MAX.
- Wide character integer value limits - These macros describe the limits of the
wint_t type defined in file wchar.h.The names of these macros are
WINT_MIN,
WINT_MAX.