From 94b63c3083b990359f5ae165f38ee4cc87e744cd Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Tue, 25 Sep 2018 18:44:22 +0900 Subject: [PATCH] z as a size specifier in printf --- libc/stdio/printf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libc/stdio/printf.c b/libc/stdio/printf.c index 5efb1ec8..b0900ed0 100644 --- a/libc/stdio/printf.c +++ b/libc/stdio/printf.c @@ -146,6 +146,10 @@ int xvasprintf(char * buf, const char * fmt, va_list args) { big = 1; ++f; } + if (*f == 'z') { + big = 1; + ++f; + } /* fmt[i] == '%' */ switch (*f) { case 's': /* String pointer -> String */