/* $NetBSD: localeconv.c,v 1.13 2005/11/29 03:11:59 christos Exp $ */
/*
* Written by J.T. Conklin <jtc@NetBSD.org>.
* Public domain.
*/
#include <LibConfig.h>
#include <sys/EfiCdefs.h>
__RCSID("$NetBSD: localeconv.c,v 1.13 2005/11/29 03:11:59 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include <sys/localedef.h>
#include <locale.h>
/*
* The localeconv() function constructs a struct lconv from the current
* monetary and numeric locales.
*
* Because localeconv() may be called many times (especially by library
* routines like printf() & strtod()), the approprate members of the
* lconv structure are computed only when the monetary or numeric
* locale has been changed.
*/
/*
* Return the current locale conversion.
*/
struct lconv *
{
if (__mlocale_changed) {
/* LC_MONETARY */
__mlocale_changed = 0;
}
if (__nlocale_changed) {
/* LC_NUMERIC */
__nlocale_changed = 0;
}
return (&ret);
}