HP-UX Reference (11i v1 05/09) - 3 Library Functions A-M (vol 6)

l
localeconv(3C) localeconv(3C)
char p_cs_precedes
Set to 1 or 0 if the currency_symbol
or int_curr_symbol
respectively precedes or
succeeds the value for a nonnegative formatted monetary quantity.
char p_sep_by_space
Set to 1 or 0 if the currency_symbol
or int_curr_symbol
respectively is or is not
separated by a space from the value for a nonnegative formatted monetary quantity; and
set to 2 if a space separates the symbol and the sign string, if adjacent.
char n_cs_precedes
Set to 1 or 0 if the currency_symbol
or int_curr_symbol
respectively precedes or
succeeds the value for a negative formatted monetary quantity.
char n_sep_by_space
Set to 1 or 0 if the currency_symbol
or int_curr_symbol
respectively is or is not
separated by a space from the value for a negative formatted monetary quantity; and set to
2 if a space separates the symbol and the sign string, if adjacent.
char p_sign_posn
Set to a value indicating the positioning of the positive_sign
for a nonnegative for-
matted monetary quantity.
char n_sign_posn
Set to a value indicating the positioning of the negative_sign
for a negative formatted
monetary quantity.
The numeric value of each byte of
grouping and mon_grouping is interpreted according to the follow-
ing:
CHAR_MAX
No further grouping is to be performed.
0 The previous byte is to be repeatedly used for the remainder of the digits.
other The value is the number of digits that comprise the current group. The next byte is exam-
ined to determine the size of the next group of digits to the left of the current group.
The values of p_sign_posn and n_sign_posn are interpreted according to the following:
0 Parentheses surround the quantity and
currency_symbol or int_curr_symbol.
1 The sign string precedes the quantity and currency_symbol
or int_curr_symbol.
2 The sign string succeeds the quantity and currency_symbol
or int_curr_symbol.
3 The sign string immediately precedes the currency_symbol
or int_curr_symbol.
4 The sign string immediately succeeds the currency_symbol
or int_curr_symbol.
localeconv() behaves as if no library function calls localeconv() .
EXTERNAL INFLUENCES
Locale
The LC_NUMERIC category influences the decimal_point, thousands_sep, and
grouping
members of the structure referenced by the pointer returned from a call to localeconv() .
The LC_MONETARY category influences all of the other members of this structure.
International Code Set Support
Single- and multibyte character code sets are supported.
Section 3528 Hewlett-Packard Company 2 HP-UX 11i Version 1: September 2005