fxlibc/src/stdio/sscanf.c

20 lines
311 B
C

#include <stdio.h>
#include "stdio_p.h"
int sscanf(const char * restrict str, char const * restrict fmt, ...)
{
struct __scanf_input in = {
.str = str,
};
va_list args;
va_start(args, fmt);
__scanf_start(&in);
int count = __scanf(&in, fmt, &args);
__scanf_end(&in);
va_end(args);
return count;
}