summaryrefslogtreecommitdiff
path: root/os/src/sprintf.c
blob: 76ea9a27b946ecde1342ab9202cae7a104372805 (plain)
1
2
3
4
5
6
7
8
9
10
#include <reent.h>
#include <stdarg.h>

int sprintf(char * str, const char * fmt, ...) {
    int r;
    va_list ap;
    va_start(ap, fmt);
    r = _vsprintf_r(_impure_ptr, str, fmt, ap);
    va_end(ap);
}