1
0
Fork 0

Merge pull request #10 from Leandros/size_t_support

add support for size_t flag: %zd/%zu
development
Marco Paland 7 years ago committed by GitHub
commit 3a924ada73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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) {

Loading…
Cancel
Save