[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    wsprintf(3I) manual page Table of Contents

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)


Table of Contents