aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/sprintf.c
blob: d00274e02805870ac4290c1f18575915ab40ce5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * sprintf.c
 */

#include <stdio.h>
#include <unistd.h>
#include <limits.h>

int sprintf(char *buffer, const char *format, ...)
{
    va_list ap;
    int rv;

    va_start(ap, format);
    rv = vsnprintf(buffer, INT_MAX, format, ap);
    va_end(ap);

    return rv;
}