1LOCALECONV(3) Linux Programmer's Manual LOCALECONV(3)
2
3
4
6 localeconv - get numeric formatting information
7
9 #include <locale.h>
10
11 struct lconv *localeconv(void);
12
14 The localeconv() function returns a pointer to a struct lconv for the
15 current locale. This structure is shown in locale(7), and contains all
16 values associated with the locale categories LC_NUMERIC and LC_MONE‐
17 TARY. Programs may also use the functions printf(3) and strfmon(3),
18 which behave according to the actual locale in use.
19
21 The localeconv() function returns a pointer to a filled in struct
22 lconv. This structure may be (in glibc, is) statically allocated, and
23 may be overwritten by subsequent calls. According to POSIX, the caller
24 should not modify the contents of this structure. The localeconv()
25 function always succeeds.
26
28 Multithreading (see pthreads(7))
29 The localeconv() function is not thread-safe, since it returns a
30 pointer to a structure which might be overwritten by subsequent calls.
31
33 C89, C99.
34
36 The printf(3) family of functions may or may not honor the current
37 locale.
38
40 locale(1), localedef(1), isalpha(3), nl_langinfo(3), setlocale(3), str‐
41 coll(3), strftime(3), locale(7)
42
44 This page is part of release 3.53 of the Linux man-pages project. A
45 description of the project, and information about reporting bugs, can
46 be found at http://www.kernel.org/doc/man-pages/.
47
48
49
50GNU 2013-06-21 LOCALECONV(3)