Buy the book!
|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
localeconv: It is portable but ...
Together with the
setlocale function the ISO C people
localeconv function. It is a masterpiece of poor
design. It is expensive to use, not extendable, and not generally
usable as it provides access to only
LC_NUMERIC related information. Nevertheless, if it is
applicable to a given situation it should be used since it is very
portable. The function
strfmon formats monetary amounts
according to the selected locale using this information.
localeconvfunction 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
localeconv's return value is of this data type. Its elements are described in the following subsections.
If a member of the structure
struct lconv has type
and the value is
CHAR_MAX, it means that the current locale has
no value for that parameter.
188.8.131.52 Generic Numeric Formatting Parameters Parameters for formatting numbers and currency amounts. 184.108.40.206 Printing the Currency Symbol How to print the symbol that identifies an amount of money (e.g. `$'). 220.127.116.11 Printing the Sign of a Monetary Amount How to print the (positive or negative) sign for a monetary amount, if one exists.
|webmaster||delorie software privacy|
|Copyright © 2003 by The Free Software Foundation||Updated Jun 2003|