Add %zu printf support

This commit is contained in:
cpq committed 2026-07-07 12:37:47 +01:00
1 parent ad269fa4d5
commit 875c0fcd4f
3 files changed
+15

No files matched your search

+1
View File
@@ -173,6 +173,7 @@ size_t mg_vxprintf(void (*out)(char, void *), void *param, const char *fmt,
is_long++, c = fmt[++i];
if (c == 'l') is_long++, c = fmt[++i];
}
if (c == 'z') is_long = 1, c = fmt[++i];
if (c == 'p') x = 1, is_long = 1;
if (c == 'd' || c == 'u' || c == 'x' || c == 'X' || c == 'p' ||
c == 'g' || c == 'f') {