1localeconv(3)              Library Functions Manual              localeconv(3)
2
3
4

NAME

6       localeconv - get numeric formatting information
7

LIBRARY

9       Standard C library (libc, -lc)
10

SYNOPSIS

12       #include <locale.h>
13
14       struct lconv *localeconv(void);
15

DESCRIPTION

17       The  localeconv()  function returns a pointer to a struct lconv for the
18       current locale.  This structure is shown in locale(7), and contains all
19       values  associated  with  the locale categories LC_NUMERIC and LC_MONE‐
20       TARY.  Programs may also use the functions  printf(3)  and  strfmon(3),
21       which behave according to the actual locale in use.
22

RETURN VALUE

24       The  localeconv()  function  returns  a  pointer  to a filled in struct
25       lconv.  This structure may be (in glibc, is) statically allocated,  and
26       may be overwritten by subsequent calls.  According to POSIX, the caller
27       should not modify the contents of  this  structure.   The  localeconv()
28       function always succeeds.
29

ATTRIBUTES

31       For  an  explanation  of  the  terms  used  in  this  section,  see at‐
32       tributes(7).
33
34       ┌─────────────┬───────────────┬────────────────────────────────────────┐
35Interface    Attribute     Value                                  
36       ├─────────────┼───────────────┼────────────────────────────────────────┤
37localeconv() │ Thread safety │ MT-Unsafe race:localeconv locale       │
38       └─────────────┴───────────────┴────────────────────────────────────────┘
39

STANDARDS

41       C11.
42

HISTORY

44       C89.
45

BUGS

47       The printf(3) family of functions may or may not honor the current  lo‐
48       cale.
49

SEE ALSO

51       locale(1), localedef(1), isalpha(3), nl_langinfo(3), setlocale(3), str‐
52       coll(3), strftime(3), locale(7)
53
54
55
56Linux man-pages 6.04              2023-03-30                     localeconv(3)
Impressum