summaryrefslogtreecommitdiffstats
path: root/contrib/syslinux-4.02/core/printf.c
blob: b1b0466b0377884c28ed1c2329d8eae56e6dfe3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>
#include <unistd.h>

#include "core.h"

int printf(const char *format, ...)
{
    char buf[1024];
    va_list ap;
    int rv;
    
    va_start(ap, format);
    rv = vsnprintf(buf, sizeof buf, format, ap);
    va_end(ap);
    
    myputs(buf);

    return rv;

}