Sets the thread's current entire locale or specified portions of it.
#include <locale.h>
char *setlocale (int category, const char *locale);
category
locale
locale
points to an empty string, the locale is the implementation-defined native locale. Some locale-dependent aspects include the formatting of dates and the display format for monetary values.
These are the manifest constants used for the category argument and the parts of the program affected:
Value | Program parts affected |
---|---|
LC_ALL | All categories listed below. |
LC_COLLATE | strcoll and strxfrm. |
LC_CTYPE | The character-handling functions except for isdigit and isxdigit, which are unaffected. |
LC_MONETARY | Monetary formatting information returned by localeconv. |
LC_NUMERIC | Decimal point character for the formatted output functions such as printf, for the data conversion functions, and for the nonmonetary formatting information returned by localeconv. |
LC_TIME | strftime. |
One of these:
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/locale.h | locale.h | clib.lib |