scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

fprintf.c (223B)


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