Everything

vprintf


Outputs a variable parameter list to the standard output file (stdout) according to a format.

[Format]

#include <stdarg.h>

#include <stdio.h>

long vprintf (const char *control, va_list arg);

[Parameters]

control Pointer to string indicating format

arg Parameter list

[Return values]

Normal: Number of characters converted and output

Abnormal: Negative value

[Remarks]

The vprintf function sequentially converts and edits a variable parameter list according to the string that represents the format pointed to by control, and outputs the result to the standard output file.

The vprintf function returns the number of data items converted and output, or a negative value when an error occurs.

Within the vprintf function, the va_end macro is not invoked.

For details of the format specifications, see the description of the fprintf function.

Parameter arg, indicating the parameter list, must be initialized beforehand by the va_start macro (and the succeeding va_arg macro).