Standard C++ Library Reference ISO/IEC (VERSION3)
p_sign_posn -- the format for positive monetary values:
A value of 0 indicates that parentheses surround the value and the currency symbol.●
A value of 1 indicates that the negative sign precedes the value and the currency symbol.●
A value of 2 indicates that the negative sign follows the value and the currency symbol.●
A value of 3 indicates that the negative sign immediately precedes the currency symbol.●
A value of 4 indicates that the negative sign immediately follows the currency symbol.
(4)
●
localeconv
struct lconv *localeconv(void);
The function returns a pointer to a static-duration structure containing numeric formatting
information for the current locale. You cannot alter values stored in the static-duration structure.
The stored values can change on later calls to localeconv or on calls to setlocale that
alter any of the categories LC_ALL, LC_MONETARY, or LC_NUMERIC.
NULL
#define NULL <either 0, 0L, or (void *)0> [0 in C++]
The macro yields a null pointer constant that is usable as an address constant expression.
setlocale
char *setlocale(int category, const char *locname);
The function either returns a pointer to a static-duration string describing a new locale or returns
a null pointer (if the new locale cannot be selected). The value of category selects one or
more locale categories, each of which must match the value of one of the macros defined in this
standard header with names that begin with LC_.
If locname is a null pointer, the locale remains unchanged. If locname points to the string
"C", the new locale is the "C" locale for the locale category specified. If locname points to
the string "", the new locale is the native locale (a default locale presumably tailored for the
local culture) for the locale category specified. locname can also point to a string returned on
an earlier call to setlocale or to other strings that the implementation can define.
At program startup, the target environment calls setlocale( LC_ALL, "C") before it
calls main.
See also the Table of Contents and the Index.