Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

wsscanf(3C)

printf(3S)

scanf(3S)

sprintf(3S)

attributes(5)

wsprintf(3C)

NAME

wsprintf − formatted output conversion

SYNOPSIS

#include <stdio.h>
#include <widec.h>

int wsprintf(wchar_t ∗s, const char ∗format, /∗ arg ∗/ ... );

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. 

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
MT-Level MT-Safe

SEE ALSO

wsscanf(3C), printf(3S), scanf(3S), sprintf(3S), attributes(5)

SunOS 5.6  —  Last change: 29 Dec 1996

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026