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