When you want to format a number or a currency amount using the
conventions of the current locale, you can use the function
localeconv
to get the data on how to do it. The function
localeconv
is declared in the header file `locale.h'.
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 shouldn't 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
.
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.