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