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