projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
remove standalone syscall cruft
[oweals/musl.git]
/
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
}