Scans input from a string under format control, using a variable argument list.
#include <stdio.h> int vsscanf ( const char *string, const char *format, va_list arg);
(IN) Points to the string to be scanned.
(IN) Points to the format control string. See Scan Format Control Strings.
(IN) Specifies the 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 arguments 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, vsscanf also sets the error indicator for the stream and sets errno to one of the following:
The vsscanf function scans input from the string designated by string under control of the format parameter.
The vsscanf function is equivalent to the sscanf function, with the variable arguments replaced with arg, which has been initialized using the va_start macro.