shave off 2 bytes from crt1.o _start
[musl] / src / stdio / vdprintf.c
1 #include "stdio_impl.h"
2
3 int vdprintf(int fd, const char *fmt, va_list ap)
4 {
5         int r;
6         char buf[BUFSIZ];
7         FILE f = {
8                 .fd = fd, .lbf = EOF, .write = __stdio_write,
9                 .buf = buf+UNGET, .buf_size = sizeof buf - UNGET
10         };
11         r = vfprintf(&f, fmt, ap);
12         __oflow(&f);
13         return r;
14 }