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