locale.h
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:1k
- /* $Id$ */
- /* locale.h: ANSI X3.159 1989 library header, section 4.4 */
- /* Copyright (C) Codemist Ltd. */
- /* Copyright (C) SGS-THOMSON Microelectronics Ltd. 1996 */
- #ifndef __locale_h
- #define __locale_h
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define LC_COLLATE 1
- #define LC_CTYPE 2
- #define LC_MONETARY 4
- #define LC_NUMERIC 8
- #define LC_TIME 16
- #define LC_ALL 31
- 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;
- };
- #ifdef __SIGNED_CHAR__
- #pragma ST_translate(localeconv, "_ST_localeconvs")
- #else
- #pragma ST_translate(localeconv, "_ST_localeconvu")
- #endif
- extern struct lconv *localeconv(void);
- #pragma ST_nosideeffects(localeconv)
- extern char *setlocale(int /*category*/, const char * /*locale*/);
- #ifndef NULL
- # ifdef __cplusplus
- # define NULL 0
- # else
- # define NULL (void *)0
- # endif
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
- /* end of locale.h */