localeconv: It is portable but ...
Together with the setlocale function the ISO C people
invented localeconv function. It is a masterpiece of misdesign.
It is expensive to use, it is not extendable, and is not generally
usable as it provides access only to the LC_MONETARY and
LC_NUMERIC related information. If it is applicable for a
certain situation it should nevertheless be used since it is very
portable. In general it is better to use the function strfmon
which can be used to format monetary amounts correctly according to the
selected locale by implicitly using this information.
localeconv function returns a pointer to a structure whose
components contain information about how numeric and monetary values
should be formatted in the current locale.
You should not modify the structure or its contents. The structure might
be overwritten by subsequent calls to localeconv, or by calls to
setlocale, but no other function in the library overwrites this
value.
localeconv. Its
elements are described in the following subsections.
If a member of the structure struct lconv has type char,
and the value is CHAR_MAX, it means that the current locale has
no value for that parameter.
Go to the first, previous, next, last section, table of contents.