vprintf(3W) (MLX Addendum) (MLX) vprintf(3W) (MLX Addendum)
NAME
vprintf, vfprintf, vsprintf - print formatted output of a variable
argument list (MLX addendum)
SYNOPSIS
#include <stdio.h>
#include <stdarg.h>
#include <widec.h>
int vprintf (const char *format, valist ap);
int vfprintf (FILE *stream, const char *format, valist ap);
int vsprintf (char *s, const char *format, valist ap);
DESCRIPTION
(International Functions)
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 conversion specifications for wchart character con-
trol. They may be used in all three functions.
wc The wchart character arg is transformed into EUC, and then
printed. If a field width is specified and the transformed EUC
character has fewer bytes than the field width, it will be padded
to the given width. A precision specification is ignored, if
specified.
ws The arg is taken to be a wchart string and the wchart charac-
ters from the string are transformed into EUC and printed, until
a wchart null character is encountered or the number of bytes
indicated by the precision specification is printed. If the pre-
cision specification is missing, it is taken to be infinite, and
all wchart characters up to the first wchart null character are
transformed into EUC and printed. If a field width is specified
and the transformed EUC characters have fewer bytes than the
field width, they are padded to the given width.
The ASCII space character (0x20) is used as the padding character.
NOTES
These functions can support either typedef unsigned short wchart or
typedef long wchart conditionally, see mbchar(3W).
SEE ALSO
stdio(3S), vprintf(3S), stdarg(5), mbchar(3W), printf(3W), scanf(3W),
widec(3W).
Page 1 Reliant UNIX 5.44 12, 196