scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

localeconv.c (608B)


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