Scans input from the stream designated by stdin, using a variable argument list.
#include <stdio.h> int vscanf ( const char *format, va_list arg);
(IN) Points to the format control string.
(OUT) Specifies a variable argument list where the scanned string is to be stored. The number of arguments in the list is determined by the format string.
If successful, returns the number of input items for which values were successfully scanned and stored. Otherwise, returns EOF when any of the following occur:
The scanning is terminated by reaching the end of the input stream
A matching failure is encountered
A read error occurs
If a read error occurs, vscanf also sets the error indicator for the stream and sets errno to one of the following:
The vscanf function scans input from the file designated by stdin under control of the format parameter. The vscanf function is equivalent to the scanf function, with the variable arguments replaced with arg, which has been initialized using the va_start macro