scc

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

vprintf.c (180B)


      1 #include <stdarg.h>
      2 #include <stdio.h>
      3 
      4 #undef vprintf
      5 
      6 int
      7 vprintf(const char *restrict fmt, va_list ap)
      8 {
      9 	va_list ap2;
     10 
     11 	va_copy(ap2, ap);
     12 	return vfprintf(stdout, fmt, ap2);
     13 }