wsprintf(3I)
NAME
wsprintf − formatted output conversion
SYNOPSIS
cc [ flag ... ] file ... −lw [ library ... ]
#include <stdio.h>
#include <widec.h>
int wsprintf(wchar_t ∗s, const char ∗format, /∗ arg ∗/ ... );
MT-LEVEL
MT-Safe
DESCRIPTION
wsprintf() 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(3S) function except that the result is a Process Code string for wsprintf(), and on Extended Unix Code (EUC) character string for sprintf(3S).
RETURN VALUES
Upon success, wsprintf() returns the number of characters printed. When an error condition is encountered, a negative value is returned.
SEE ALSO
wsscanf(3I), printf(3S), scanf(3S), sprintf(3S)
SunOS 5.4 — Last change: 22 Jan 1993