Each locale contains the following cultural information:
The LC_TIME category defines the conventions for writing date and time, the names of the days of the week, and the names of months of the year.
The LC_NUMERIC category defines the conventions for formatting non-monetary values.
The LC_MONETARY category defines currency symbols and the conventions used to format monetary values.
The LC_MESSAGES category defines the strings expected in response to yes/no questions.
You can extract some of this cultural information using the nl_langinfo function and the localeconv function. See Section 10.7.1.
The nl_langinfo function returns a pointer to a string that contains an item of information obtained from the program's current locale. The information you can extract from the locale is:
The localeconv function returns a pointer to a data structure that contains numeric formatting and monetary formatting data from the LC_NUMERIC and LC_MONETARY categories.
The functions that use the date and time information are:
The strfmon function uses the monetary information in a locale to convert a number of values into a string. The format of the string is controlled by a format string.
The information in LC_NUMERIC is used by various functions. For example, strtod, wcstod, and the print and scan functions determine the radix character from the LC_NUMERIC category.