svcadm(8)을 검색하려면 섹션에서 8 을 선택하고, 맨 페이지 이름에 svcadm을 입력하고 검색을 누른다.
wsprintf(3c)
wsprintf(3C) Standard C Library Functions wsprintf(3C)
NAME
wsprintf - formatted output conversion
SYNOPSIS
#include <stdio.h>
#include <widec.h>
int wsprintf(wchar_t *s, const char *format, /* arg */ ... ););
DESCRIPTION
The wsprintf() function outputs a Process Code string ending with a
Process Code (wchar_t) null character. It is the user's responsibility
to allocate enough space for this wchar_t string.
This returns the number of Process Code characters (excluding the null
terminator) that have been written. The conversion specifications and
behavior of wsprintf() are the same as the regular sprintf(3C) function
except that the result is a Process Code string for wsprintf(), and an
Extended UNIX Code (EUC) character string for sprintf().
RETURN VALUES
Upon successful completion, wsprintf() returns the number of characters
printed. Otherwise, a negative value is returned.
USAGE
The functions provided in <widec.h> are provided for backwards compati‐
bility, and are not recommended for use in newer code. Instead, the
equivalent functions from <wchar.h> should be used for greater porta‐
bility to other systems.
See swprintf(3C) for the recommended replacement for wsprintf().
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
TRIBUTE VALUE _ MT-LevelMT-Safe
SEE ALSO
printf(3C), scanf(3C), sprintf(3C), swprintf(3C), wsscanf(3C), attrib‐
utes(7)
HISTORY
The wsprintf() function was added to Solaris in the Solaris 2.0 re‐
lease.
In Solaris 2.0 through 2.5, this function was located in the libw li‐
brary. In Solaris 2.6 and later, it is located in libc, and the libw
library is a filter on libc to maintain binary and source compatibil‐
ity.
Oracle Solaris 11.4 25 Nov 2024 wsprintf(3C)