Welcome

首页 / 软件开发 / C语言 / C标准库参考指南(6)locale.h

C标准库参考指南(6)locale.h2013-04-28 柳惊鸿 6. locale.h

头文件locale对设置具体位置信息很有用。

变量:

struct lconv

宏:

NULL

LC_ALL

LC_COLLATE

LC_CTYPE

LC_MONETARY

LC_NUMERIC

LC_TIME

函数:

localeconv();

setlocale();

6.1. Variables and Definitions

数据结构“lconv”包含下面这些成员变量。这个数据结构的使用,将在“6.3 localeconv”中描述。

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;

宏“LC_”将会在6.2 setlocale中描述。“NULL”是空指针常量值。