URI:
       vsprintf.c - scc - simple c99 compiler
  HTML git clone git://git.simple-cc.org/scc
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
       vsprintf.c (235B)
       ---
            1 #include <stdarg.h>
            2 #include <stdint.h>
            3 #include <stdio.h>
            4 
            5 #undef vsprintf
            6 
            7 int
            8 vsprintf(char *restrict s, const char *restrict fmt, va_list va)
            9 {
           10         uintptr_t addr = (uintptr_t) s;
           11 
           12         return vsnprintf(s, UINTPTR_MAX - addr, fmt, va);
           13 }