4 * Ullrich von Bassewitz, 11.12.1998
14 /*****************************************************************************/
16 /*****************************************************************************/
20 /* For memory efficiency use a separate empty string */
21 static char EmptyString [] = "";
23 static struct lconv lc = {
24 EmptyString, /* currency_symbol */
25 ".", /* decimal_point */
26 EmptyString, /* grouping */
27 EmptyString, /* int_curr_symbol */
28 EmptyString, /* mon_decimal_point */
29 EmptyString, /* mon_grouping */
30 EmptyString, /* mon_thousands_sep */
31 EmptyString, /* negative_sign */
32 EmptyString, /* positive_sign */
33 EmptyString, /* thousands_sep */
34 CHAR_MAX, /* frac_digits */
35 CHAR_MAX, /* int_frac_digits */
36 CHAR_MAX, /* n_cs_precedes */
37 CHAR_MAX, /* n_sep_by_space */
38 CHAR_MAX, /* n_sign_posn */
39 CHAR_MAX, /* p_cs_precedes */
40 CHAR_MAX, /* p_sep_by_space */
41 CHAR_MAX, /* p_sign_posn */
46 /*****************************************************************************/
48 /*****************************************************************************/
52 struct lconv* localeconv (void)
59 char* setlocale (int, const char* locale)
61 if (locale == 0 || (locale [0] == 'C' && locale [1] == '\0') || locale [0] == '\0') {
62 /* No change, or value already set, our locale is the "C" locale */
65 /* Cannot set this one */