##### Synopsis

    #include <stdio_c.h>
    int vscanf_c(__code const char *format, va_list arg);

##### Description

vscanf_c reads input from the standard input stream under control of the string pointed to by format that specifies the admissible input sequences and how they are to be converted for assignment, using subsequent arguments as pointers to the objects to receive the converted input. The format string is stored in flash (code) memory. Before calling vscanf_f, arg must be initialized by the va_start macro (and possibly subsequent va_arg calls). vscanf_c does not invoke the va_end macro.

If there are insufficient arguments for the format, the behavior is undefined.

vscanf_c returns the value of the macro EOF if an input failure occurs before any conversion. Otherwise, vscanf_c returns the number of input items assigned, which can be fewer than provided for, or even zero, in the event of an early matching failure.

##### Notes

vscanf_c is equivalent to vscanf with the format string is stored in code memory..

##### Portability

vscan_c is an extension provided by CrossWorks C.

##### See Also

Format strings for scanf functions