projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
bfb1b0a9d8c4a3c566dd7e5a97c44ea0b8e05d84
[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
}