summaryrefslogtreecommitdiff
path: root/src/locale/localeconv.c
blob: 9dc7930219774ae040a1309a793714a9ceb42bd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <locale.h>
#include "_locale.h"
#include "_safety.h"

/** return locale-specific information **/

struct lconv * localeconv(void)
{
	SIGNAL_SAFE(0);

	/*
	RETURN_SUCCESS(a pointer to a filled-in STRUCTDEF(lconv) for the current locale);
	*/
	/* TODO: mark return value read-only */
	return &(__get_locale()->lconv);
}

CHECK_0(struct lconv *, NULL, localeconv)

/***
fills in a STRUCTDEF(lconv) in the current locale for
use in formatting numbers and monetary values.
***/

/*
LC_MONETARY
LC_NUMERIC
STDC(1)
*/