version: Update to 4.08, update year to 2014
[syslinux/sherbszt.git] / core / printf.c
blobb1b0466b0377884c28ed1c2329d8eae56e6dfe3b
1 #include <stdio.h>
2 #include <unistd.h>
4 #include "core.h"
6 int printf(const char *format, ...)
8 char buf[1024];
9 va_list ap;
10 int rv;
12 va_start(ap, format);
13 rv = vsnprintf(buf, sizeof buf, format, ap);
14 va_end(ap);
16 myputs(buf);
18 return rv;