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.
category can have the following values:
||All of the locale
||Date and time formatting
||String collation and regular expression matching
||Regular expression matching, conversion, case-sensitive comparison, wide character functions, and character classification.
||For monetary formatting
||For natural language messages
- Related topics
- (Standard C String & Character) strcoll