Macros | |
| #define | LC_MESSAGES 1729 |
Functions | |
| char * | evil_setlocale (int category, const char *locale) |
| Return the string associated to the given locale and category. More... | |
This header provides functions ported from Unix in locale.h.
| #define LC_MESSAGES 1729 |
New locale value, based on the one in libintl.h
| char* evil_setlocale | ( | int | category, |
| const char * | locale | ||
| ) |
Return the string associated to the given locale and category.
| category | The category affected by locale. |
| locale | The locale specifier. |
This function returns the string associated to locale and category. If category is LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC or LC_TIME, it just returns the standard setlocale() function. If category is LC_MESSAGES, then if locale is not NULL, errno is set to EINVAL and NULL is returned, otherwise the string <language>_<country> is returned. This string is a static buffer and must not be freed. It will also be rewritten each time category is LC_MESSAGES and locale is NULL.
Conformity: Non applicable.
Supported OS: Windows XP.
References LC_MESSAGES.