This source file includes following definitions.
- localeconv
- localeconv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 #include <config.h>
18
19
20 #include <locale.h>
21
22 #if HAVE_STRUCT_LCONV_DECIMAL_POINT
23
24
25
26
27 struct lconv *
28 localeconv (void)
29 {
30 static struct lconv result;
31 # undef lconv
32 # undef localeconv
33 struct lconv *sys_result = localeconv ();
34
35 result.decimal_point = sys_result->decimal_point;
36 result.thousands_sep = sys_result->thousands_sep;
37 result.grouping = sys_result->grouping;
38 result.mon_decimal_point = sys_result->mon_decimal_point;
39 result.mon_thousands_sep = sys_result->mon_thousands_sep;
40 result.mon_grouping = sys_result->mon_grouping;
41 result.positive_sign = sys_result->positive_sign;
42 result.negative_sign = sys_result->negative_sign;
43 result.currency_symbol = sys_result->currency_symbol;
44 result.frac_digits = sys_result->frac_digits;
45 result.p_cs_precedes = sys_result->p_cs_precedes;
46 result.p_sign_posn = sys_result->p_sign_posn;
47 result.p_sep_by_space = sys_result->p_sep_by_space;
48 result.n_cs_precedes = sys_result->n_cs_precedes;
49 result.n_sign_posn = sys_result->n_sign_posn;
50 result.n_sep_by_space = sys_result->n_sep_by_space;
51 result.int_curr_symbol = sys_result->int_curr_symbol;
52 result.int_frac_digits = sys_result->int_frac_digits;
53 result.int_p_cs_precedes = sys_result->p_cs_precedes;
54 result.int_p_sign_posn = sys_result->p_sign_posn;
55 result.int_p_sep_by_space = sys_result->p_sep_by_space;
56 result.int_n_cs_precedes = sys_result->n_cs_precedes;
57 result.int_n_sign_posn = sys_result->n_sign_posn;
58 result.int_n_sep_by_space = sys_result->n_sep_by_space;
59
60 return &result;
61 }
62
63 #else
64
65
66
67 # include <limits.h>
68
69 struct lconv *
70 localeconv (void)
71 {
72 static struct lconv result =
73 {
74 ".",
75 "",
76 "",
77 "",
78 "",
79 "",
80 "",
81 "",
82 "",
83 CHAR_MAX,
84 CHAR_MAX,
85 CHAR_MAX,
86 CHAR_MAX,
87 CHAR_MAX,
88 CHAR_MAX,
89 CHAR_MAX,
90 "",
91 CHAR_MAX,
92 CHAR_MAX,
93 CHAR_MAX,
94 CHAR_MAX,
95 CHAR_MAX,
96 CHAR_MAX,
97 CHAR_MAX
98 };
99
100 return &result;
101 }
102
103 #endif