Debian Codegraph @

libc-top-half/musl/src/stdio/vdprintf.c

raw
1 #include "stdio_impl.h"
2
3 int vdprintf(int fd, const char *restrict fmt, va_list ap)
4 {
5 FILE f = {
6 .fd = fd, .lbf = EOF, .write = __stdio_write,
7 .buf = (void *)fmt, .buf_size = 0,
8 #if defined(__wasilibc_unmodified_upstream) || defined(_REENTRANT)
9 .lock = -1
10 #endif
11 };
12 return vfprintf(&f, fmt, ap);
13 }