#include #include #ifndef __LITEOS__ #include "param_check.h" #endif int fscanf(FILE *restrict f, const char *restrict fmt, ...) { #ifndef __LITEOS__ PARAM_CHECK(f); #endif int ret; va_list ap; va_start(ap, fmt); ret = vfscanf(f, fmt, ap); va_end(ap); return ret; } weak_alias(fscanf, __isoc99_fscanf);