diff options
-rw-r--r-- | printf.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -425,6 +425,10 @@ static size_t _vsnprintf(char* buffer, size_t buffer_len, const char* format, va flags |= FLAGS_LONG_LONG;
format++;
}
+ if ((*format == 'z')) {
+ flags |= (sizeof(size_t) == 8 ? FLAGS_LONG_LONG : FLAGS_LONG);
+ format++;
+ }
// evaluate specifier
switch (*format) {
|