]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/localeconv.3
libc.7: Add a note on why glibc 2.x uses the soname libc.so.6
[thirdparty/man-pages.git] / man3 / localeconv.3
CommitLineData
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
28localeconv \- get numeric formatting information
29.SH SYNOPSIS
30.nf
31.B #include <locale.h>
32.sp
33.B struct lconv *localeconv(void);
34.fi
35.SH DESCRIPTION
36The
63aa9df0 37.BR localeconv ()
fea681da 38function returns a pointer to a
8478ee02 39.I struct lconv
c13182ef
MK
40for the current locale.
41This structure is shown in
23b3fc77 42.BR locale (7),
fea681da
MK
43and contains all values associated with the locale categories
44.B LC_NUMERIC
45and
46.BR LC_MONETARY .
47Programs may also use the functions
23b3fc77 48.BR printf (3)
fea681da 49and
23b3fc77
MK
50.BR strfmon (3),
51which behave according to the actual locale in use.
ebf47258
PH
52.SH RETURN VALUE
53The
54.BR localeconv ()
55function returns a pointer to a filled in
56.IR "struct lconv" .
51700fd7 57This structure may be (in glibc,
ebf47258
PH
58.IR is )
59statically allocated, and may be overwritten by subsequent calls.
60According to POSIX,
61the caller should not modify the contents of this structure.
62The
63.BR localeconv ()
64function always succeeds.
5265a3da 65.SH ATTRIBUTES
81b8377d
PH
66For an explanation of the terms used in this section, see
67.BR attributes (7).
68.TS
69allbox;
70lb lb lb
71l l l.
72Interface Attribute Value
73T{
5265a3da 74.BR localeconv ()
81b8377d
PH
75T} Thread safety MT-Unsafe race:localeconv locale
76.TE
47297adb 77.SH CONFORMING TO
1eb85d14 78C89, C99.
fea681da
MK
79.SH BUGS
80The
fb186734 81.BR printf (3)
fea681da 82family 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)