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 For an explanation of the terms used in this section, see
29 attributes(7).
30
31 ┌─────────────┬───────────────┬──────────────────────────────────┐
32 │Interface │ Attribute │ Value │
33 ├─────────────┼───────────────┼──────────────────────────────────┤
34 │localeconv() │ Thread safety │ MT-Unsafe race:localeconv locale │
35 └─────────────┴───────────────┴──────────────────────────────────┘
37 C89, C99.
38
40 The printf(3) family of functions may or may not honor the current
41 locale.
42
44 locale(1), localedef(1), isalpha(3), nl_langinfo(3), setlocale(3), str‐
45 coll(3), strftime(3), locale(7)
46
48 This page is part of release 4.16 of the Linux man-pages project. A
49 description of the project, information about reporting bugs, and the
50 latest version of this page, can be found at
51 https://www.kernel.org/doc/man-pages/.
52
53
54
55GNU 2015-03-02 LOCALECONV(3)