]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/localeconv.3
All pages: Remove the 5th argument to .TH
[thirdparty/man-pages.git] / man3 / localeconv.3
CommitLineData
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
8localeconv \- get numeric formatting information
b99f6c92
AC
9.SH LIBRARY
10Standard 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
19The
63aa9df0 20.BR localeconv ()
fea681da 21function returns a pointer to a
8478ee02 22.I struct lconv
c13182ef
MK
23for the current locale.
24This structure is shown in
23b3fc77 25.BR locale (7),
fea681da
MK
26and contains all values associated with the locale categories
27.B LC_NUMERIC
28and
29.BR LC_MONETARY .
30Programs may also use the functions
23b3fc77 31.BR printf (3)
fea681da 32and
23b3fc77
MK
33.BR strfmon (3),
34which behave according to the actual locale in use.
ebf47258
PH
35.SH RETURN VALUE
36The
37.BR localeconv ()
38function returns a pointer to a filled in
39.IR "struct lconv" .
51700fd7 40This structure may be (in glibc,
ebf47258
PH
41.IR is )
42statically allocated, and may be overwritten by subsequent calls.
43According to POSIX,
44the caller should not modify the contents of this structure.
45The
46.BR localeconv ()
47function always succeeds.
5265a3da 48.SH ATTRIBUTES
81b8377d
PH
49For 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
54allbox;
b32feea5 55lb lb lbx
81b8377d
PH
56l l l.
57Interface Attribute Value
58T{
5265a3da 59.BR localeconv ()
b32feea5
MK
60T} Thread safety T{
61MT-Unsafe race:localeconv locale
62T}
81b8377d 63.TE
c466875e
MK
64.hy
65.ad
66.sp 1
3113c7f3 67.SH STANDARDS
1eb85d14 68C89, C99.
fea681da
MK
69.SH BUGS
70The
fb186734 71.BR printf (3)
fea681da 72family 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)