scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

printf.c (204B)


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