Line | |
---|
1 | /*
|
---|
2 | * localeconv - set components of a struct according to current locale
|
---|
3 | */
|
---|
4 | /* $Header: /cvsup/minix/src/lib/ansi/localeconv.c,v 1.1.1.1 2005/04/21 14:56:05 beng Exp $ */
|
---|
5 |
|
---|
6 | #include <limits.h>
|
---|
7 | #include <locale.h>
|
---|
8 |
|
---|
9 | extern struct lconv _lc;
|
---|
10 |
|
---|
11 | struct lconv *
|
---|
12 | localeconv(void)
|
---|
13 | {
|
---|
14 | register struct lconv *lcp = &_lc;
|
---|
15 |
|
---|
16 | lcp->decimal_point = ".";
|
---|
17 | lcp->thousands_sep = "";
|
---|
18 | lcp->grouping = "";
|
---|
19 | lcp->int_curr_symbol = "";
|
---|
20 | lcp->currency_symbol = "";
|
---|
21 | lcp->mon_decimal_point = "";
|
---|
22 | lcp->mon_thousands_sep = "";
|
---|
23 | lcp->mon_grouping = "";
|
---|
24 | lcp->positive_sign = "";
|
---|
25 | lcp->negative_sign = "";
|
---|
26 | lcp->int_frac_digits = CHAR_MAX;
|
---|
27 | lcp->frac_digits = CHAR_MAX;
|
---|
28 | lcp->p_cs_precedes = CHAR_MAX;
|
---|
29 | lcp->p_sep_by_space = CHAR_MAX;
|
---|
30 | lcp->n_cs_precedes = CHAR_MAX;
|
---|
31 | lcp->n_sep_by_space = CHAR_MAX;
|
---|
32 | lcp->p_sign_posn = CHAR_MAX;
|
---|
33 | lcp->n_sign_posn = CHAR_MAX;
|
---|
34 |
|
---|
35 | return lcp;
|
---|
36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.