]> git.saurik.com Git - apple/libc.git/blob - stdio/printf_l.3
Libc-1044.1.2.tar.gz
[apple/libc.git] / stdio / printf_l.3
1 .\" Copyright (c) 1990, 1991, 1993
2 .\" The Regents of the University of California. All rights reserved.
3 .\"
4 .\" This code is derived from software contributed to Berkeley by
5 .\" Chris Torek and the American National Standards Committee X3,
6 .\" on Information Processing Systems.
7 .\"
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
10 .\" are met:
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\" notice, this list of conditions and the following disclaimer in the
15 .\" documentation and/or other materials provided with the distribution.
16 .\" 3. All advertising materials mentioning features or use of this software
17 .\" must display the following acknowledgement:
18 .\" This product includes software developed by the University of
19 .\" California, Berkeley and its contributors.
20 .\" 4. Neither the name of the University nor the names of its contributors
21 .\" may be used to endorse or promote products derived from this software
22 .\" without specific prior written permission.
23 .\"
24 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
25 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
28 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 .\" SUCH DAMAGE.
35 .\"
36 .\" @(#)printf.3 8.1 (Berkeley) 6/4/93
37 .\" $FreeBSD: src/lib/libc/stdio/printf.3,v 1.58 2004/10/16 16:00:01 stefanf Exp $
38 .\"
39 .Dd December 15, 2009
40 .Dt PRINTF_L 3
41 .Os
42 .Sh NAME
43 .Nm asprintf_l ,
44 .Nm dprintf_l ,
45 .Nm fprintf_l ,
46 .Nm printf_l ,
47 .Nm snprintf_l ,
48 .Nm sprintf_l ,
49 .Nm vasprintf_l ,
50 .Nm vdprintf_l ,
51 .Nm vfprintf_l ,
52 .Nm vprintf_l ,
53 .Nm vsnprintf_l ,
54 .Nm vsprintf_l
55 .Nd formatted output conversion
56 .Sh LIBRARY
57 .Lb libc
58 .Sh SYNOPSIS
59 .In stdio.h
60 .In xlocale.h
61 .Ft int
62 .Fo asprintf_l
63 .Fa "char **ret"
64 .Fa "locale_t loc"
65 .Fa "const char *format"
66 .Fa ...
67 .Fc
68 .Ft int
69 .Fo dprintf_l
70 .Fa "int fd"
71 .Fa "locale_t loc"
72 .Fa "const char * restrict format"
73 .Fa ...
74 .Fc
75 .Ft int
76 .Fo fprintf_l
77 .Fa "FILE * restrict stream"
78 .Fa "locale_t loc"
79 .Fa "const char * restrict format"
80 .Fa ...
81 .Fc
82 .Ft int
83 .Fo printf_l
84 .Fa "locale_t loc"
85 .Fa "const char * restrict format"
86 .Fa ...
87 .Fc
88 .Ft int
89 .Fo snprintf_l
90 .Fa "char * restrict str"
91 .Fa "size_t size"
92 .Fa "locale_t loc"
93 .Fa "const char * restrict format"
94 .Fa ...
95 .Fc
96 .Ft int
97 .Fo sprintf_l
98 .Fa "char * restrict str"
99 .Fa "locale_t loc"
100 .Fa "const char * restrict format"
101 .Fa ...
102 .Fc
103 .In stdarg.h
104 .In xlocale.h
105 .Ft int
106 .Fo vasprintf_l
107 .Fa "char **ret"
108 .Fa "locale_t loc"
109 .Fa "const char *format"
110 .Fa "va_list ap"
111 .Fc
112 .Ft int
113 .Fo vdprintf_l
114 .Fa "int fd"
115 .Fa "locale_t loc"
116 .Fa "const char * restrict format"
117 .Fa "va_list ap"
118 .Fc
119 .Ft int
120 .Fo vfprintf_l
121 .Fa "FILE * restrict stream"
122 .Fa "locale_t loc"
123 .Fa "const char * restrict format"
124 .Fa "va_list ap"
125 .Fc
126 .Ft int
127 .Fo vprintf_l
128 .Fa "locale_t loc"
129 .Fa "const char * restrict format"
130 .Fa "va_list ap"
131 .Fc
132 .Ft int
133 .Fo vsnprintf_l
134 .Fa "char * restrict str"
135 .Fa "size_t size"
136 .Fa "locale_t loc"
137 .Fa "const char * restrict format"
138 .Fa "va_list ap"
139 .Fc
140 .Ft int
141 .Fo vsprintf_l
142 .Fa "char * restrict str"
143 .Fa "locale_t loc"
144 .Fa "const char * restrict format"
145 .Fa "va_list ap"
146 .Fc
147 .Sh DESCRIPTION
148 The
149 .Fn printf_l ,
150 .Fn dprintf_l ,
151 .Fn fprintf_l ,
152 .Fn sprintf_l ,
153 .Fn snprintf_l ,
154 .Fn asprintf_l ,
155 .Fn vprintf_l ,
156 .Fn vdprintf_l ,
157 .Fn vfprintf_l ,
158 .Fn vsprintf_l ,
159 .Fn vsnprintf_l ,
160 and
161 .Fn vasprintf_l
162 functions are extended locale versions of the
163 .Fn printf ,
164 .Fn dprintf ,
165 .Fn fprintf ,
166 .Fn sprintf ,
167 .Fn snprintf ,
168 .Fn asprintf ,
169 .Fn vprintf ,
170 .Fn vdprintf ,
171 .Fn vfprintf ,
172 .Fn vsprintf ,
173 .Fn vsnprintf ,
174 and
175 .Fn vasprintf
176 functions, respectively.
177 Refer to their manual pages for details.
178 Also, see
179 .Xr xlocale 3 for more information about extended locales.
180 .Sh SEE ALSO
181 .Xr printf 3 ,
182 .Xr xlocale 3