Home | History | Annotate | Line # | Download | only in libhack
localeconv.c revision 1.1.2.2
      1 /*	$NetBSD: localeconv.c,v 1.1.2.2 1999/05/19 03:53:59 gwr Exp $	*/
      2 
      3 /*
      4  * Written by J.T. Conklin <jtc (at) netbsd.org>.
      5  * Public domain.
      6  */
      7 
      8 #include <sys/cdefs.h>
      9 #include <sys/localedef.h>
     10 #include <locale.h>
     11 
     12 /*
     13  * The localeconv() function constructs a struct lconv from the current
     14  * monetary and numeric locales.
     15  */
     16 
     17 /*
     18  * Return the current locale conversion.
     19  * Fixed in the "C" locale.
     20  */
     21 struct lconv *
     22 localeconv()
     23 {
     24     static struct lconv ret = {
     25 	/* char	*decimal_point */ ".",
     26 	/* char	*thousands_sep */ "",
     27 	/* char	*grouping */ "",
     28 	/* char	*int_curr_symbol */ "",
     29 	/* char	*currency_symbol */ "",
     30 	/* char	*mon_decimal_point */ "",
     31 	/* char	*mon_thousands_sep */ "",
     32 	/* char	*mon_grouping */ "",
     33 	/* char	*positive_sign */ "",
     34 	/* char	*negative_sign */ "",
     35 	/* char	int_frac_digits */ CHAR_MAX,
     36 	/* char	frac_digits */ CHAR_MAX,
     37 	/* char	p_cs_precedes */ CHAR_MAX,
     38 	/* char	p_sep_by_space */ CHAR_MAX,
     39 	/* char	n_cs_precedes */ CHAR_MAX,
     40 	/* char	n_sep_by_space */ CHAR_MAX,
     41 	/* char	p_sign_posn */ CHAR_MAX,
     42 	/* char	n_sign_posn */ CHAR_MAX,
     43     };
     44 
     45     return (&ret);
     46 }
     47