scc

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

printf.c (205B)


      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(stdout, fmt, va);
     13 	va_end(va);
     14 	return cnt;
     15 }