1LOCALECONV(3)              Linux Programmer's Manual             LOCALECONV(3)
2
3
4

NAME

6       localeconv - get numeric formatting information
7

SYNOPSIS

9       #include <locale.h>
10
11       struct lconv *localeconv(void);
12

DESCRIPTION

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

RETURN VALUE

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

ATTRIBUTES

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

CONFORMING TO

38       C89, C99.
39

BUGS

41       The printf(3) family of functions may or may not honor the current  lo‐
42       cale.
43

SEE ALSO

45       locale(1), localedef(1), isalpha(3), nl_langinfo(3), setlocale(3), str‐
46       coll(3), strftime(3), locale(7)
47

COLOPHON

49       This page is part of release 5.13 of the Linux  man-pages  project.   A
50       description  of  the project, information about reporting bugs, and the
51       latest    version    of    this    page,    can     be     found     at
52       https://www.kernel.org/doc/man-pages/.
53
54
55
56GNU                               2021-03-22                     LOCALECONV(3)
Impressum