1 #ifndef _LOCALE_H_ 2 #define _LOCALE_H_ 3 /* 4 ** Distributed under the terms of the OpenBeOS License. 5 */ 6 7 #include <null.h> 8 9 struct lconv { 10 char *decimal_point; 11 char *thousands_sep; 12 char *grouping; 13 char *int_curr_symbol; 14 char *currency_symbol; 15 char *mon_decimal_point; 16 char *mon_thousands_sep; 17 char *mon_grouping; 18 char *positive_sign; 19 char *negative_sign; 20 char int_frac_digits; 21 char frac_digits; 22 char p_cs_precedes; 23 char p_sep_by_space; 24 char n_cs_precedes; 25 char n_sep_by_space; 26 char p_sign_posn; 27 char n_sign_posn; 28 }; 29 30 #define LC_ALL 0 31 #define LC_COLLATE 1 32 #define LC_CTYPE 2 33 #define LC_MONETARY 3 34 #define LC_NUMERIC 4 35 #define LC_TIME 5 36 #define LC_MESSAGES 6 37 38 #ifdef __cplusplus 39 extern "C" { 40 #endif 41 42 extern struct lconv *localeconv(void); 43 extern char *setlocale(int category, const char *locale); 44 45 #ifdef __cplusplus 46 } 47 #endif 48 49 #endif /* _LOCALE_H_ */ 50