Rev 4874 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4349 | Serge | 1 | /* |
2 | locale.h |
||
3 | Values appropriate for the formatting of monetary and other |
||
4 | numberic quantities. |
||
5 | */ |
||
6 | |||
7 | #ifndef _LOCALE_H_ |
||
8 | #define _LOCALE_H_ |
||
9 | |||
10 | #include "_ansi.h" |
||
11 | |||
4921 | Serge | 12 | #define __need_NULL |
13 | #include |
||
4349 | Serge | 14 | |
15 | #define LC_ALL 0 |
||
16 | #define LC_COLLATE 1 |
||
17 | #define LC_CTYPE 2 |
||
18 | #define LC_MONETARY 3 |
||
19 | #define LC_NUMERIC 4 |
||
20 | #define LC_TIME 5 |
||
21 | #define LC_MESSAGES 6 |
||
22 | |||
23 | _BEGIN_STD_C |
||
24 | |||
25 | struct lconv |
||
26 | { |
||
27 | char *decimal_point; |
||
28 | char *thousands_sep; |
||
29 | char *grouping; |
||
30 | char *int_curr_symbol; |
||
31 | char *currency_symbol; |
||
32 | char *mon_decimal_point; |
||
33 | char *mon_thousands_sep; |
||
34 | char *mon_grouping; |
||
35 | char *positive_sign; |
||
36 | char *negative_sign; |
||
37 | char int_frac_digits; |
||
38 | char frac_digits; |
||
39 | char p_cs_precedes; |
||
40 | char p_sep_by_space; |
||
41 | char n_cs_precedes; |
||
42 | char n_sep_by_space; |
||
43 | char p_sign_posn; |
||
44 | char n_sign_posn; |
||
45 | char int_n_cs_precedes; |
||
46 | char int_n_sep_by_space; |
||
47 | char int_n_sign_posn; |
||
48 | char int_p_cs_precedes; |
||
49 | char int_p_sep_by_space; |
||
50 | char int_p_sign_posn; |
||
51 | }; |
||
52 | |||
53 | #ifndef _REENT_ONLY |
||
54 | char *_EXFUN(setlocale,(int category, const char *locale)); |
||
55 | struct lconv *_EXFUN(localeconv,(void)); |
||
56 | #endif |
||
57 | |||
58 | struct _reent; |
||
59 | char *_EXFUN(_setlocale_r,(struct _reent *, int category, const char *locale)); |
||
60 | struct lconv *_EXFUN(_localeconv_r,(struct _reent *)); |
||
61 | |||
62 | _END_STD_C |
||
63 | |||
64 | #endif /* _LOCALE_H_ */ |