summaryrefslogtreecommitdiffstats
path: root/contrib/syslinux-4.02/com32/lib/snprintf.c
blob: 304bab4d402994e4375b3af786e84ff9f85a606f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * snprintf.c
 */

#include <stdio.h>

int snprintf(char *buffer, size_t n, const char *format, ...)
{
    va_list ap;
    int rv;

    va_start(ap, format);
    rv = vsnprintf(buffer, n, format, ap);
    va_end(ap);
    return rv;
}