diff options
author | Marco Paland <marco@paland.com> | 2018-04-17 17:59:21 +0200 |
---|---|---|
committer | Marco Paland <marco@paland.com> | 2018-04-17 17:59:21 +0200 |
commit | ca6e7e5291986b95e0fad98a0a9018c8c8ce1fe1 (patch) | |
tree | a672a225e5c81fa611972257ffe51b3d13d85cd0 /printf.c | |
parent | 896b2ce07b6ea0660408fc5698026c8a3af3aa3d (diff) | |
parent | 281e44d53b4506b3e0e737f93af48d0c1ea5ac3e (diff) | |
download | printf-ca6e7e5291986b95e0fad98a0a9018c8c8ce1fe1.tar.gz printf-ca6e7e5291986b95e0fad98a0a9018c8c8ce1fe1.tar.bz2 printf-ca6e7e5291986b95e0fad98a0a9018c8c8ce1fe1.zip |
Merge branch 'size_t_specifier_support'
Diffstat (limited to 'printf.c')
-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) == sizeof(long) ? FLAGS_LONG : FLAGS_LONG_LONG);
+ format++;
+ }
// evaluate specifier
switch (*format) {
|