#include #include #include /* sprintf() Prints to a string. */ int sprintf(char *str, const char *format, ...) { va_list args; va_start(args, format); int x = __printf(0, format, args); strncpy(str, __stdio_buffer, __stdio_buffer_size); va_end(args); return x; }