37 lines
769 B
C
37 lines
769 B
C
|
/*
|
||
|
* localeconv - set components of a struct according to current locale
|
||
|
*/
|
||
|
/* $Header$ */
|
||
|
|
||
|
#include <limits.h>
|
||
|
#include <locale.h>
|
||
|
|
||
|
extern struct lconv _lc;
|
||
|
|
||
|
struct lconv *
|
||
|
localeconv(void)
|
||
|
{
|
||
|
register struct lconv *lcp = &_lc;
|
||
|
|
||
|
lcp->decimal_point = ".";
|
||
|
lcp->thousands_sep = "";
|
||
|
lcp->grouping = "";
|
||
|
lcp->int_curr_symbol = "";
|
||
|
lcp->currency_symbol = "";
|
||
|
lcp->mon_decimal_point = "";
|
||
|
lcp->mon_thousands_sep = "";
|
||
|
lcp->mon_grouping = "";
|
||
|
lcp->positive_sign = "";
|
||
|
lcp->negative_sign = "";
|
||
|
lcp->int_frac_digits = CHAR_MAX;
|
||
|
lcp->frac_digits = CHAR_MAX;
|
||
|
lcp->p_cs_precedes = CHAR_MAX;
|
||
|
lcp->p_sep_by_space = CHAR_MAX;
|
||
|
lcp->n_cs_precedes = CHAR_MAX;
|
||
|
lcp->n_sep_by_space = CHAR_MAX;
|
||
|
lcp->p_sign_posn = CHAR_MAX;
|
||
|
lcp->n_sign_posn = CHAR_MAX;
|
||
|
|
||
|
return lcp;
|
||
|
}
|