6.17.13 Limits of Other Integer Types

Macros that specify the minimum and maximum limits of the miscellaneous types declared in <stdint.h>.

Attention: The macros relating to wide characters are implemented only by MPLAB XC32 compilers. The macros relating to signals are not implemented by MPLAB XC8 for PIC MCUs. Limited support of signals is provided by MPLAB XC8 for AVR MCUs.

Include

<stdint.h>

Remarks

Each macro name corresponds to the indicated type. The macro will expand to a constant expression suitable for use in #if preprocessing directives, and this expression shall have the same type as an object of the corresponding type converted according to the integer promotions.

TypeDescription
PTRDIFF_MINMinimum value of the ptrdiff_t type.
PTRDIFF_MAXMaximum value of the ptrdiff_t type.
SIG_ATOMIC_MINMinimum value of the sig_atomic_t type (see Attention note).
SIG_ATOMIC_MAXMaximum value of the sig_atomic_t type (see Attention note).
SIZE_MAXMaximum value of the size_t type.
WCHAR_MINMinimum value of the wchar_t type (see Attention note).
WCHAR_MAXMaximum value of the wchar_t type (see Attention note).
WINT_MINMinimum value of the wint_t type (see Attention note).
WINT_MAXMaximum value of the wint_t type (see Attention note).