z as a size specifier in printf

This commit is contained in:
K. Lange 2018-09-25 18:44:22 +09:00
parent e7ee6ab948
commit 94b63c3083

View File

@ -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 */