Guardian C Library Calls Reference Manual
vprintf
3-234 128833—Guardian TNS C Library Calls Reference Manual
Reference to Library Calls
vprintf
The vprintf function writes formatted data to the standard output file, extracting the data
values from a variable argument list.
format
points to a string that contains characters and conversion specifiers, which indicate
how to format the values of the arguments denoted by ap. Refer to “fprintf” on
page 3-51 for a description of format and conversion specifiers.
ap
is a variable of type va_list that has been initialized by a previous invocation of
va_start (and possibly invocations of va_arg as well).
Return Value
is the number of characters output if the operation is successful; otherwise, vprintf
returns a negative value.
Usage Guidelines
•
Note that vprintf requires two headers, <stdargh> and <stdioh>.
•
The vprintf function does not call the va_end function.
#include <stdargh>
#include <stdioh>
int vprintf(const char *format, va_list ap);