scc

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

sprintf.c (216B)


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