VFPRINTF(3) Library Functions Manual VFPRINTF(3)

vfprintf vprintf vsnprintf vsprintfformat output of a stdarg argument list

#include <stdarg.h>
#include <stdio.h>

int vfprintf(FILE *stream, const char *format, va_list ap);
int vprintf(const char *format, va_list ap);
int vsnprintf(char *s, size_t n, const char *format, va_list ap);
int vsprintf(char *s, const char *format, va_list ap);

The vprintf() , vfprintf() , vsnprintf() and vsprintf(3) functions are the same as printf(3) , fprintf(3) , snprintf(3) and sprintf(3) respectively, except that instead of being called with a variable number of arguments, they are called with an argument list as defined by <stdarg.h> .

These functions do not invoke the macro. As these functions invoke the macro, the value of after the return is indeterminate.

Refer to printf(3) .

Refer to printf(3) .

None.

Applications using these functions should call va_end ( ap ) afterwards to clean up.

None.

printf(3) , <stdarg.h> , <stdio.h> .

Derived from Issue 1 of the SVID.

February 1997 posix.fail