vsscanf
Scans input from a string under format control
#include <stdio.h> #include <stdarg.h> int vsscanf ( const char *in_string, const char *format, va_list arg);
The vsscanf function returns EOF when the scanning is terminated by reaching the end of the input string. Otherwise, the number of input arguments for which values were successfully scanned and stored is returned.
The vsscanf function scans input from the string designated by in_string under control of the argument format. The format list is described with the scanf function.
The vsscanf function is equivalent to the sscanf function, with a variable argument list replaced with arg, which has been initialized using the va_start macro.
#include <stdio.h> #include <stdarg.h> . . . int Input (in_data, format, ...) char *in_data, format; { va_list arglist; va_start (arglist, format); return (vsscanf (in_data, format, arglist)); }