HP-UX Reference (11i v1 00/12) - 3 Library Functions A-M (vol 6)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man3/!!!intro.3c
________________________________________________________________
___ ___
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() .
APPLICATION USAGE
localeconv() is thread-safe. It is not async-cancel-safe.
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.
HP-UX Release 11i: December 2000 − 2 − Section 3−−493
___
___