Guardian C Library Calls Reference Manual

Reference to Library Calls
Guardian TNS C Library Calls Reference Manual128833 3-105
localeconv
localeconv
The localeconv function returns a pointer to a structure of type lconv that contains
information that reflects the rules of the current locale. The standard C locale is the only
locale supported in this release.
Usage Guidelines
The lconv structure is defined as follows:
struct lconv {
/* Members controlled by the LC_MONETARY category */
char *currency_symbol; /* monetary decimal point */
char *int_curr_symbol; /* international (ISO) currency
symbol */
char *mon_decimal_point; /* monetary decimal point */
char *mon_thousands_sep; /* separator for groups of
digits */
char *mon_grouping; /* size of each group of mon.
digits */
char *positive_sign; /* positive monetary value
indicator */
char *negative_sign; /* negative monetary value
indicator */
char frac_digits; /* number of digits after
decimal */
char p_cs_precedes; /* currency symbol precedes
positive */
char p_sep_by_space; /* currency symbol separated by
space */
char n_cs_precedes; /* currency symbol precedes
negative */
char n_sep_by_space; /* currency symbol separated by
space */
char p sign posn; /* positive sign position */
char n_sign_posn; /* negative sign position */
/* Members controlled by the LC_NUMERIC category */
char *decimal point; /* non-monetary decimal point */
char *grouping; /* size of groups of non-monetary
digits */
char *thousands_sep; /* separator symbol for groups of
digits */
};
#include <localeh>
struct lconv *localeconv(void);