#include #include #include #include int sprintf(char * str, const char * fmt, ...) { int r; va_list ap; DBGOUT("sprintf(%p, %p, ...)\r\n", str, fmt); va_start(ap, fmt); r = _vsprintf_r(_impure_ptr, str, fmt, ap); va_end(ap); return r; }