Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
localeconv(3) Guardian Native C Library Calls Reference Manual
NAME
localeconv - Retrieves locale-dependent formatting parameters
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRTLSRL
G-series native OSS processes: /G/system/sysnn/zcrtlsrl
H-series and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCRTLDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcrtldll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycrtldll
SYNOPSIS
#include <locale.h>
struct lconv *localeconv(void);
PARAMETERS
None.
DESCRIPTION
The localeconv() function provides access to the object that specifies the current locale’s con-
ventions for the format of numeric quantities.
The lconv structure contains values appropriate for formatting numeric quantities (monetary and
otherwise) according to the rules of the current locale. The members of the structure with the
type char * are pointers to strings, any of which (except decimal_point) can point to a null
string, to indicate that the value is not available in the current locale or is of zero length. The
members with type char are nonnegative numbers, any of which can be CHAR_MAX to indi-
cate that the value is not available in the current locale. The members include the following:
char *decimal_point
The decimal-point character used to format nonmonetary quantities.
char *thousands_sep
The separator for groups of digits to the left of the decimal point in formatted
nonmonetary quantities.
char *grouping
A string whose elements indicate the size of each group of digits in formatted
nonmonetary quantities.
char *int_curr_symbol
The international currency symbol applicable to the current locale, left justified
within a 4-character, space-padded field. The character sequences are in accor-
dance with those specified in ISO 4217 Codes for the Representation of
Currency and Funds.
char *currency_symbol
The currency symbol applicable to the current locale.
char *mon_decimal_point
The decimal point used to format monetary quantities.
char *mon_thousands_sep
The separator for groups of digits to the left of the decimal point in formatted
monetary quantities.
4−38 Hewlett-Packard Company 527192-018