OSDN Git Service

66756aad9c5a9399ac907b62f6cd014a35587c7e
[linuxjm/LDP_man-pages.git] / original / man3 / localeconv.3
1 .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
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.
12 .\"
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.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\" Modified Sat Jul 24 19:01:20 1993 by Rik Faith (faith@cs.unc.edu)
26 .TH LOCALECONV 3  2013-06-21 "GNU" "Linux Programmer's Manual"
27 .SH NAME
28 localeconv \- 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
36 The
37 .BR localeconv ()
38 function returns a pointer to a
39 .I struct lconv
40 for the current locale.
41 This structure is shown in
42 .BR locale (7),
43 and contains all values associated with the locale categories
44 .B LC_NUMERIC
45 and
46 .BR LC_MONETARY .
47 Programs may also use the functions
48 .BR printf (3)
49 and
50 .BR strfmon (3),
51 which behave according to the actual locale in use.
52 .SH RETURN VALUE
53 The
54 .BR localeconv ()
55 function returns a pointer to a filled in
56 .IR "struct lconv" .
57 This structure may be (in glibc,
58 .IR is )
59 statically allocated, and may be overwritten by subsequent calls.
60 According to POSIX,
61 the caller should not modify the contents of this structure.
62 The
63 .BR localeconv ()
64 function always succeeds.
65 .SH ATTRIBUTES
66 .SS Multithreading (see pthreads(7))
67 The
68 .BR localeconv ()
69 function is not thread-safe, since it returns a pointer to a structure which
70 might be overwritten by subsequent calls.
71 .SH CONFORMING TO
72 C89, C99.
73 .SH BUGS
74 The
75 .BR printf (3)
76 family of functions may or may not honor the current locale.
77 .SH SEE ALSO
78 .BR locale (1),
79 .BR localedef (1),
80 .BR isalpha (3),
81 .BR nl_langinfo (3),
82 .BR setlocale (3),
83 .BR strcoll (3),
84 .BR strftime (3),
85 .BR locale (7)
86 .SH COLOPHON
87 This page is part of release 3.67 of the Linux
88 .I man-pages
89 project.
90 A description of the project,
91 information about reporting bugs,
92 and the latest version of this page,
93 can be found at
94 \%http://www.kernel.org/doc/man\-pages/.