]>
Commit | Line | Data |
---|---|---|
bf5a7247 | 1 | .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de) |
fea681da | 2 | .\" |
93015253 | 3 | .\" %%%LICENSE_START(VERBATIM) |
fea681da MK |
4 | .\" Permission is granted to make and distribute verbatim copies of this |
5 | .\" manual provided the copyright notice and this permission notice are | |
6 | .\" preserved on all copies. | |
7 | .\" | |
8 | .\" Permission is granted to copy and distribute modified versions of this | |
9 | .\" manual under the conditions for verbatim copying, provided that the | |
10 | .\" entire resulting derived work is distributed under the terms of a | |
11 | .\" permission notice identical to this one. | |
c13182ef | 12 | .\" |
fea681da MK |
13 | .\" Since the Linux kernel and libraries are constantly changing, this |
14 | .\" manual page may be incorrect or out-of-date. The author(s) assume no | |
15 | .\" responsibility for errors or omissions, or for damages resulting from | |
16 | .\" the use of the information contained herein. The author(s) may not | |
17 | .\" have taken the same level of care in the production of this manual, | |
18 | .\" which is licensed free of charge, as they might when working | |
19 | .\" professionally. | |
c13182ef | 20 | .\" |
fea681da MK |
21 | .\" Formatted or processed versions of this manual, if unaccompanied by |
22 | .\" the source, must acknowledge the copyright and authors of this work. | |
4b72fb64 | 23 | .\" %%%LICENSE_END |
c08df37a | 24 | .\" |
fea681da | 25 | .\" Modified Sat Jul 24 19:01:20 1993 by Rik Faith (faith@cs.unc.edu) |
fe0fefbf | 26 | .TH LOCALECONV 3 2015-03-02 "GNU" "Linux Programmer's Manual" |
fea681da MK |
27 | .SH NAME |
28 | localeconv \- get numeric formatting information | |
29 | .SH SYNOPSIS | |
30 | .nf | |
31 | .B #include <locale.h> | |
68e4db0a | 32 | .PP |
fea681da MK |
33 | .B struct lconv *localeconv(void); |
34 | .fi | |
35 | .SH DESCRIPTION | |
36 | The | |
63aa9df0 | 37 | .BR localeconv () |
fea681da | 38 | function returns a pointer to a |
8478ee02 | 39 | .I struct lconv |
c13182ef MK |
40 | for the current locale. |
41 | This structure is shown in | |
23b3fc77 | 42 | .BR locale (7), |
fea681da MK |
43 | and contains all values associated with the locale categories |
44 | .B LC_NUMERIC | |
45 | and | |
46 | .BR LC_MONETARY . | |
47 | Programs may also use the functions | |
23b3fc77 | 48 | .BR printf (3) |
fea681da | 49 | and |
23b3fc77 MK |
50 | .BR strfmon (3), |
51 | which behave according to the actual locale in use. | |
ebf47258 PH |
52 | .SH RETURN VALUE |
53 | The | |
54 | .BR localeconv () | |
55 | function returns a pointer to a filled in | |
56 | .IR "struct lconv" . | |
51700fd7 | 57 | This structure may be (in glibc, |
ebf47258 PH |
58 | .IR is ) |
59 | statically allocated, and may be overwritten by subsequent calls. | |
60 | According to POSIX, | |
61 | the caller should not modify the contents of this structure. | |
62 | The | |
63 | .BR localeconv () | |
64 | function always succeeds. | |
5265a3da | 65 | .SH ATTRIBUTES |
81b8377d PH |
66 | For an explanation of the terms used in this section, see |
67 | .BR attributes (7). | |
68 | .TS | |
69 | allbox; | |
70 | lb lb lb | |
71 | l l l. | |
72 | Interface Attribute Value | |
73 | T{ | |
5265a3da | 74 | .BR localeconv () |
81b8377d PH |
75 | T} Thread safety MT-Unsafe race:localeconv locale |
76 | .TE | |
47297adb | 77 | .SH CONFORMING TO |
1eb85d14 | 78 | C89, C99. |
fea681da MK |
79 | .SH BUGS |
80 | The | |
fb186734 | 81 | .BR printf (3) |
fea681da | 82 | family of functions may or may not honor the current locale. |
47297adb | 83 | .SH SEE ALSO |
fea681da MK |
84 | .BR locale (1), |
85 | .BR localedef (1), | |
86 | .BR isalpha (3), | |
0087e7c4 | 87 | .BR nl_langinfo (3), |
fea681da MK |
88 | .BR setlocale (3), |
89 | .BR strcoll (3), | |
90 | .BR strftime (3), | |
91 | .BR locale (7) |