ack/lang/cem/libcc.ansi/core/locale/localeconv.c

37 lines
764 B
C
Raw Normal View History

1989-06-14 16:11:19 +00:00
/*
* localeconv - set components of a struct according to current locale
*/
1994-06-24 14:02:31 +00:00
/* $Id$ */
1989-06-14 16:11:19 +00:00
2018-06-21 20:33:47 +00:00
#include <limits.h>
#include <locale.h>
1989-06-14 16:11:19 +00:00
extern struct lconv _lc;
2018-06-21 20:33:47 +00:00
struct lconv*
1989-06-14 16:11:19 +00:00
localeconv(void)
{
2018-06-21 20:33:47 +00:00
register struct lconv* lcp = &_lc;
1989-06-14 16:11:19 +00:00
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;
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;
}