1 #include <stdarg.h>
2 #include <stdio.h>
3 
fprintf(FILE * restrict f,const char * restrict fmt,...)4 int fprintf(FILE* restrict f, const char* restrict fmt, ...) {
5     int ret;
6     va_list ap;
7     va_start(ap, fmt);
8     ret = vfprintf(f, fmt, ap);
9     va_end(ap);
10     return ret;
11 }
12