2003-07-26 21:06:22 +04:00
|
|
|
/* $NetBSD: localeconv.c,v 1.3 2003/07/26 17:07:36 salo Exp $ */
|
1999-05-19 07:53:58 +04:00
|
|
|
|
|
|
|
/*
|
2003-07-26 21:06:22 +04:00
|
|
|
* Written by J.T. Conklin <jtc@NetBSD.org>.
|
1999-05-19 07:53:58 +04:00
|
|
|
* Public domain.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
#include <sys/localedef.h>
|
|
|
|
#include <locale.h>
|
2002-11-20 02:15:59 +03:00
|
|
|
#include <limits.h>
|
1999-05-19 07:53:58 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* The localeconv() function constructs a struct lconv from the current
|
|
|
|
* monetary and numeric locales.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Return the current locale conversion.
|
|
|
|
* Fixed in the "C" locale.
|
|
|
|
*/
|
|
|
|
struct lconv *
|
|
|
|
localeconv()
|
|
|
|
{
|
|
|
|
static struct lconv ret = {
|
|
|
|
/* char *decimal_point */ ".",
|
|
|
|
/* char *thousands_sep */ "",
|
|
|
|
/* char *grouping */ "",
|
|
|
|
/* char *int_curr_symbol */ "",
|
|
|
|
/* char *currency_symbol */ "",
|
|
|
|
/* char *mon_decimal_point */ "",
|
|
|
|
/* char *mon_thousands_sep */ "",
|
|
|
|
/* char *mon_grouping */ "",
|
|
|
|
/* char *positive_sign */ "",
|
|
|
|
/* char *negative_sign */ "",
|
|
|
|
/* char int_frac_digits */ CHAR_MAX,
|
|
|
|
/* char frac_digits */ CHAR_MAX,
|
|
|
|
/* char p_cs_precedes */ CHAR_MAX,
|
|
|
|
/* char p_sep_by_space */ CHAR_MAX,
|
|
|
|
/* char n_cs_precedes */ CHAR_MAX,
|
|
|
|
/* char n_sep_by_space */ CHAR_MAX,
|
|
|
|
/* char p_sign_posn */ CHAR_MAX,
|
|
|
|
/* char n_sign_posn */ CHAR_MAX,
|
|
|
|
};
|
|
|
|
|
|
|
|
return (&ret);
|
|
|
|
}
|