##### Synopsis

    #include <stdio_c.h>
    int sscanf_c(const char *s, __code const char *format, ...);

##### Description

sscanf_c reads input from the string s 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.

If there are insufficient arguments for the format, the behavior is undefined. If the format is exhausted while arguments remain, the excess arguments are evaluated but are otherwise ignored.

sscanf_c returns the value of the macro EOF if an input failure occurs before any conversion. Otherwise, sscanf_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

sscanf_c is identical in function to sscanf except that the format string is stored in flash (code) memory.

##### Portability

sscanf_c is an extension provided by CrossWorks C.

##### See Also

Format strings for scanf functions