Translations of this page?:

setlocale

Syntax:

    #include <clocale>
    char *setlocale( int category, const char * locale );

The setlocale function is used to set and retrieve the current locale. If locale is NULL, the current locale is returned. Otherwise, locale is used to set the locale for the given category.

The argument category can have the following values:

ValueDescription
LC_ALLAll of the locale
LC_TIMEDate and time formatting
LC_NUMERICNumber formatting
LC_COLLATEString collation and regular expression matching
LC_CTYPERegular expression matching, conversion, case-sensitive comparison, wide character functions, and character classification.
LC_MESSAGESFor natural language messages

Related Topics: strcoll

 
• • • IndexRecent changesRSScc