mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-02 02:32:27 +00:00
Support printf %n directive
This commit is contained in:
parent
c1a0b017e9
commit
01b09bc817
8 changed files with 21 additions and 8 deletions
|
@ -63,7 +63,7 @@ int vdprintf(int fd, const char *fmt, va_list va) {
|
|||
t.n = 0;
|
||||
t.t = 0;
|
||||
t.fd = fd;
|
||||
if (__fmt(vdprintf_putc, &t, fmt, va) == -1)
|
||||
if (__fmt(vdprintf_putc, &t, fmt, va, &t.t) == -1)
|
||||
return -1;
|
||||
if (t.n) {
|
||||
iov[0].iov_base = t.b;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue