localeconv.c (804B)
1 #include <limits.h> 2 #include <locale.h> 3 4 #undef localeconv 5 6 struct lconv * 7 localeconv(void) 8 { 9 static struct lconv lc = { 10 .decimal_point = ".", 11 .thousands_sep = "", 12 .grouping = "", 13 .mon_decimal_point = "", 14 .mon_thousands_sep = "", 15 .mon_grouping = "", 16 .positive_sign = "", 17 .negative_sign = "", 18 .currency_symbol = "", 19 .int_curr_symbol = "", 20 .frac_digits = CHAR_MAX, 21 .p_cs_precedes = CHAR_MAX, 22 .n_cs_precedes = CHAR_MAX, 23 .p_sep_by_space = CHAR_MAX, 24 .n_sep_by_space = CHAR_MAX, 25 .p_sign_posn = CHAR_MAX, 26 .n_sign_posn = CHAR_MAX, 27 .int_frac_digits = CHAR_MAX, 28 .int_p_cs_precedes = CHAR_MAX, 29 .int_n_cs_precedes = CHAR_MAX, 30 .int_p_sep_by_space = CHAR_MAX, 31 .int_n_sep_by_space = CHAR_MAX, 32 .int_p_sign_posn = CHAR_MAX, 33 .int_n_sign_posn = CHAR_MAX, 34 }; 35 return &lc; 36 }