]>
Commit | Line | Data |
---|---|---|
bf5a7247 | 1 | .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de) |
fea681da | 2 | .\" |
5fbde956 | 3 | .\" SPDX-License-Identifier: Linux-man-pages-copyleft |
c08df37a | 4 | .\" |
fea681da | 5 | .\" Modified Sat Jul 24 19:01:20 1993 by Rik Faith (faith@cs.unc.edu) |
45186a5d | 6 | .TH LOCALECONV 3 2021-03-22 "Linux man-pages (unreleased)" |
fea681da MK |
7 | .SH NAME |
8 | localeconv \- get numeric formatting information | |
b99f6c92 AC |
9 | .SH LIBRARY |
10 | Standard C library | |
8fc3b2cf | 11 | .RI ( libc ", " \-lc ) |
fea681da MK |
12 | .SH SYNOPSIS |
13 | .nf | |
14 | .B #include <locale.h> | |
68e4db0a | 15 | .PP |
fea681da MK |
16 | .B struct lconv *localeconv(void); |
17 | .fi | |
18 | .SH DESCRIPTION | |
19 | The | |
63aa9df0 | 20 | .BR localeconv () |
fea681da | 21 | function returns a pointer to a |
8478ee02 | 22 | .I struct lconv |
c13182ef MK |
23 | for the current locale. |
24 | This structure is shown in | |
23b3fc77 | 25 | .BR locale (7), |
fea681da MK |
26 | and contains all values associated with the locale categories |
27 | .B LC_NUMERIC | |
28 | and | |
29 | .BR LC_MONETARY . | |
30 | Programs may also use the functions | |
23b3fc77 | 31 | .BR printf (3) |
fea681da | 32 | and |
23b3fc77 MK |
33 | .BR strfmon (3), |
34 | which behave according to the actual locale in use. | |
ebf47258 PH |
35 | .SH RETURN VALUE |
36 | The | |
37 | .BR localeconv () | |
38 | function returns a pointer to a filled in | |
39 | .IR "struct lconv" . | |
51700fd7 | 40 | This structure may be (in glibc, |
ebf47258 PH |
41 | .IR is ) |
42 | statically allocated, and may be overwritten by subsequent calls. | |
43 | According to POSIX, | |
44 | the caller should not modify the contents of this structure. | |
45 | The | |
46 | .BR localeconv () | |
47 | function always succeeds. | |
5265a3da | 48 | .SH ATTRIBUTES |
81b8377d PH |
49 | For an explanation of the terms used in this section, see |
50 | .BR attributes (7). | |
c466875e MK |
51 | .ad l |
52 | .nh | |
81b8377d PH |
53 | .TS |
54 | allbox; | |
b32feea5 | 55 | lb lb lbx |
81b8377d PH |
56 | l l l. |
57 | Interface Attribute Value | |
58 | T{ | |
5265a3da | 59 | .BR localeconv () |
b32feea5 MK |
60 | T} Thread safety T{ |
61 | MT-Unsafe race:localeconv locale | |
62 | T} | |
81b8377d | 63 | .TE |
c466875e MK |
64 | .hy |
65 | .ad | |
66 | .sp 1 | |
3113c7f3 | 67 | .SH STANDARDS |
1eb85d14 | 68 | C89, C99. |
fea681da MK |
69 | .SH BUGS |
70 | The | |
fb186734 | 71 | .BR printf (3) |
fea681da | 72 | family of functions may or may not honor the current locale. |
47297adb | 73 | .SH SEE ALSO |
fea681da MK |
74 | .BR locale (1), |
75 | .BR localedef (1), | |
76 | .BR isalpha (3), | |
0087e7c4 | 77 | .BR nl_langinfo (3), |
fea681da MK |
78 | .BR setlocale (3), |
79 | .BR strcoll (3), | |
80 | .BR strftime (3), | |
81 | .BR locale (7) |