1
0

vdprintf.c 233 B

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