Synopsis
char *setlocale(int category,
                const char *locale);
Description

setlocale sets the current locale. The category parameter can have the following values:

Name Locale affected
LC_ALL Entire locale
LC_COLLATE Affects strcoll and strxfrm
LC_CTYPE Affects character handling
LC_MONETARY Affects monetary formatting information
LC_NUMERIC Affects decimal-point character in I/O and string formatting operations
LC_TIME Affects strftime

The locale parameter contains the name of a C locale to set or if NULL is passed the current locale is not changed.

Return Value

setlocale returns the name of the current locale.