<locale.h> Types

Locale Category Macros

Macros which specify a portion of a locale, usable as the first argument to the setlocale() function.

Attention: These macros are not implemented when building with MPLAB XC8 for PIC MCUs. They are implemented for all other devices and compilers.

Include

<locale.h>

Remarks

The locale category macros defined by this header are tabulated below with that portion of a locale that they affect.

Macro Affects
LC_ALL The entire locale
LC_COLLATE The behavior of the strcoll() and strxfrm() function
LC_CTYPE The behavior of the character handling functions
LC_MONETARY The monetary formatting information returned by the localeconv() function
LC_NUMERIC The decimal-point character for the formatted I/O and string conversion functions; the nonmonetary formatting information returned by the localeconv() function
LC_TIME The behavior of the strftime() and wcsftime() functions