2 .\" Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH WSPRINTF 3C "Dec 29, 1996"
8 wsprintf \- formatted output conversion
15 \fBint\fR \fBwsprintf\fR(\fBwchar_t *\fR\fIs\fR, \fBconst char *\fR\fIformat\fR, \fB/*\fR \fIarg\fR */ ... ););
21 The \fBwsprintf()\fR function outputs a Process Code string ending with a
22 Process Code (\fBwchar_t\fR) null character. It is the user's responsibility
23 to allocate enough space for this \fBwchar_t\fR string.
26 This returns the number of Process Code characters (excluding the null
27 terminator) that have been written. The conversion specifications and behavior
28 of \fBwsprintf()\fR are the same as the regular \fBsprintf\fR(3C) function
29 except that the result is a Process Code string for \fBwsprintf(\|),\fR and on
30 Extended Unix Code (EUC) character string for \fBsprintf()\fR.
34 Upon successful completion, \fBwsprintf()\fR returns the number of characters
35 printed. Otherwise, a negative value is returned.
39 See \fBattributes\fR(5) for descriptions of the following attributes:
47 ATTRIBUTE TYPE ATTRIBUTE VALUE
55 \fBwsscanf\fR(3C), \fBprintf\fR(3C), \fBscanf\fR(3C), \fBsprintf\fR(3C),