Heavy fix
[meinos.git] / apps / include / locale.h
blob901cfea0101782b38aacf426420216bcae3a14b6
1 /*
2 meinOS - A unix-like x86 microkernel operating system
3 Copyright (C) 2008 Janosch Gräf <janosch.graef@gmx.net>
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef _LOCALE_H_
20 #define _LOCALE_H_
22 #ifndef NULL
23 #define NULL ((void*)0)
24 #endif
26 #define LC_ALL 1
27 #define LC_COLLATE 2
28 #define LC_CTYPE 3
29 #define LC_MESSAGES 4
30 #define LC_MONETARY 5
31 #define LC_NUMERIC 6
32 #define LC_TIME 7
34 struct lconv {
35 char *currency_symbol;
36 char *decimal_point;
37 char frac_digits;
38 char *grouping;
39 char *int_curr_symbol;
40 char int_frac_digits;
41 char int_n_cs_precedes;
42 char int_n_sep_by_space;
43 char int_n_sign_posn;
44 char int_p_cs_precedes;
45 char int_p_sep_by_space;
46 char int_p_sign_posn;
47 char *mon_decimal_point;
48 char *mon_grouping;
49 char *mon_thousands_sep;
50 char *negative_sign;
51 char n_cs_precedes;
52 char n_sep_by_space;
53 char n_sign_posn;
54 char *positive_sign;
55 char p_cs_precedes;
56 char p_sep_by_space;
57 char p_sign_posn;
58 char *thousands_sep;
61 struct lconv *localeconv(void);
62 char *setlocale(int category,const char *locale);
64 #endif /* _LOCALE_H_ */