VPRINTF(3W-SVR4) RISC/os Reference Manual VPRINTF(3W-SVR4)
NAME
vprintf, vfprintf, vsprintf - print formatted output of a
variable argument list
SYNOPSIS
#include <stdio.h>
#include <stdarg.h>
#include <widec.h>
int vprintf (const char *format, va_list ap);
int vfprintf (FILE *stream, const char *format, va_list ap);
int vsprintf (char *s, const char *format, va_list ap);
DESCRIPTION
vprintf(), vfprint(), and vsprintf() are the same as
printf(), fprintf(), and sprintf() respectively, except that
instead of being called with a variable number of arguments,
they are called with an argument list as defined by the
<stdarg.h> header file.
wc and ws are the new conversion specifications for wchar_t
character control. Both wc and ws may be used in all three
functions.
wc The wchar_t character arg is transformed into EUC, and
then printed. If a field width is specified and the
transformed EUC has fewer bytes than the field width,
it will by padded to the given width. A precision
specification is ignored, if specified.
ws The arg is taken to be a wchar_t string and the wchar_t
characters from the string are transformed into EUC,
and printed until a wchar_t null character is encoun-
tered or the number of bytes indicated by the precision
specification is printed. If the precision specifica-
tion is missing, it is taken to be infinite, and all
wchar_t characters up to the first wchar_t null charac-
ter are transformed into EUC and printed. If a field
width is specified and the transformed EUC have fewer
bytes than the field width, they are padded to the
given width.
The ASCII space character (0x20) is used as a padding char-
acters.
SEE ALSO
printf(3W), scanf(3W), stdio(3S), vprintf(3S), widec(3W),
stdarg(5).
Printed 11/19/92 Page 1