HP C/iX Library Reference Manual (30026-90004)
Chapter 5 233
HP C/iX Library Function Descriptions
localeconv
localeconv
Returns information about the editing symbols of a numeric quantity specific to a locale.
Syntax
#include <locale.h>
struct lconv *localeconv (void);
Parameters
None.
Return Values
x A pointer to an object of type struct lconv.
Description
The localeconv function returns a pointer to an object of type struct lconv that
contains information about the editing symbols of a numeric quantity specific to a locale.
The structure returned by localeconv() must not be altered and may be overwritten by
subsequent calls to localeconv().
The struct type lconv, defined in the header <locale.h>, contains the following members:
struct lconv {
char *decimal_point;
char *thousands_sep;
char *grouping;
char *int_curr_symbol;
char *currency_symbol;
char *mon_decimal_point;
char *mon_thousands_sep;
char *mon_grouping;
char *positive_sign;
char *negative_sign;
char int_frac_digits;
char frac_digits;
char p_cs_precedes;
char p_sep_by_space;
char n_cs_precedes;
char n_sep_by_space;
char p_sign_posn;
char n_sign_posn;
};
See Also
setlocale(), ANSI C 4.4.2.1