Commit | Line | Data |
---|---|---|
a49930e8 CT |
1 | /* |
2 | * Copyright (c) 1991 The Regents of the University of California. | |
3 | * All rights reserved. | |
4 | * | |
5 | * %sccs.include.redist.c% | |
6 | * | |
7 | * @(#)locale.h 5.1 (Berkeley) %G% | |
8 | */ | |
9 | ||
10 | #ifndef _LOCALE_H_ | |
11 | #define _LOCALE_H_ | |
12 | ||
13 | struct lconv { | |
14 | char *decimal_point; | |
15 | char *thousands_sep; | |
16 | char *grouping; | |
17 | char *int_curr_symbol; | |
18 | char *currency_symbol; | |
19 | char *mon_decimal_point; | |
20 | char *mon_thousands_sep; | |
21 | char *mon_grouping; | |
22 | char *positive_sign; | |
23 | char *negative_sign; | |
24 | char int_frac_digits; | |
25 | char frac_digits; | |
26 | char p_cs_precedes; | |
27 | char p_sep_by_space; | |
28 | char n_cs_precedes; | |
29 | char n_sep_by_space; | |
30 | char p_sign_posn; | |
31 | char n_sign_posn; | |
32 | }; | |
33 | ||
34 | #ifndef NULL | |
35 | #define NULL 0 | |
36 | #endif | |
37 | ||
38 | #define LC_ALL 0 | |
39 | #define LC_COLLATE 1 | |
40 | #define LC_CTYPE 2 | |
41 | #define LC_MONETARY 3 | |
42 | #define LC_NUMERIC 4 | |
43 | #define LC_TIME 5 | |
44 | ||
45 | #define _LC_LAST 6 /* marks end */ | |
46 | ||
47 | #if __STDC__ || c_plusplus | |
48 | char *setlocale(int _category, const char *_locale); | |
49 | struct lconv *localeconv(void); | |
50 | #else | |
51 | char *setlocale(); | |
52 | struct lconv *localeconv(); | |
53 | #endif | |
54 | ||
55 | #endif /* _LOCALE_H_ */ |