VPRINTF(3S) — UNIX Programmer’s Manual
NAME
vfprintf, vprintf, vsprintf −
SYNOPSIS
#include <stdarg.h>
#include <stdio.h>
int vfprintf(FILE ∗stream, const char ∗format, va_list arg);
int vprintf(const char ∗format, va_list arg);
int vsprintf(char ∗s, const char ∗format, va_list arg);
DESCRIPTION
Vfprintf is equivalent to fprintf, vprintf is equivalent to printf, and vsprintf is equivalent to sprintf, with the variable argument list replaced in each case by arg, which has been initialized by the va_start macro (and possibly by subsequent va_arg calls). The vfprintf function does not invoke the va_end macro.
RETURN VALUE
Vfprintf, vprintf, and vsprintf return the number of characters transmitted, or a negative value if an output error occurred.
SEE ALSO
ANSI C — June 23, 1989