1 #include <stdio.h> 2 #include <stdarg.h> 3 #ifndef __LITEOS__ 4 #include "param_check.h" 5 #endif 6 fscanf(FILE *restrict f, const char *restrict fmt, ...)7int fscanf(FILE *restrict f, const char *restrict fmt, ...) 8 { 9 #ifndef __LITEOS__ 10 PARAM_CHECK(f); 11 #endif 12 int ret; 13 va_list ap; 14 va_start(ap, fmt); 15 ret = vfscanf(f, fmt, ap); 16 va_end(ap); 17 return ret; 18 } 19 20 weak_alias(fscanf, __isoc99_fscanf); 21