VPRINTF
Section: Standard I/O Functions (3S)
Updated: June 23, 1989
Index
Return to Main Contents
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
fprintf(3), stdarg(3)
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUE
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 17:21:58 GMT, March 25, 2025