vfscanf

Formatted stream input.

int vfscanf (FILE * stream, char * format, va_list argument);

Required Header
<stdio.h>

Return Value

This function returns the number of fields processed. EOF is returned if the first character attempted to be read resulted in an error or the End Of File.

Parameters

stream

  A pointer to the open FILE structure

format

  Format control string

argument

  Optional argument pointers list to accept the results

Remarks

The vfscanf function reads stream based on the format string and converts the input into the data types described by the string. See scanf for more information on the format string and accepted arguments.

Stream I/O Routines

See Also    fprintf, fscanf, scanf, sscanf, vfprintf