1989-06-14 16:11:19 +00:00
|
|
|
/*
|
|
|
|
* 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 = "";
|
1989-12-18 15:49:11 +00:00
|
|
|
lcp->int_frac_digits = CHAR_MAX;
|
1989-06-14 16:11:19 +00:00
|
|
|
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;
|
|
|
|
}
|