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
29       attributes(7).
30
31       ┌─────────────┬───────────────┬──────────────────────────────────┐
32Interface    Attribute     Value                            
33       ├─────────────┼───────────────┼──────────────────────────────────┤
34localeconv() │ Thread safety │ MT-Unsafe race:localeconv locale │
35       └─────────────┴───────────────┴──────────────────────────────────┘

CONFORMING TO

37       C89, C99.
38

BUGS

40       The printf(3) family of functions may or  may  not  honor  the  current
41       locale.
42

SEE ALSO

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

COLOPHON

48       This page is part of release 5.07 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)
Impressum