vfprintf

Print formatted data to a stream.

int vfprintf (FILE * stream, char * format, va_list arguments);

Required Header
<stdio.h>

Return Value

This function returns the number of characters printed to the stream. -1 indicates an error.

Parameters

stream

  A pointer to the open FILE structure

format

  The format control string

arguments

  Optional arguments pointer

Remarks

The vfprintf function prints formatted data to the stream based on the same rules of the printf function, using the optional arguments as specified by the format string.

Stream I/O Routines

See Also    fprintf, fscanf, printf, sprintf, vfscanf, vprintf, _vsnprintf, vsprintf