From 4fa88ad3aaf1a03e4cce8afe47c9215fa788878d Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 21 Sep 2004 04:45:34 +0000 Subject: [PATCH] Implement (u)intmax_t in printf(). (How'd I forget that?) --- src/lib/stdio.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/stdio.c b/src/lib/stdio.c index 034374d..13df2c7 100644 --- a/src/lib/stdio.c +++ b/src/lib/stdio.c @@ -200,6 +200,9 @@ __vprintf (const char *format, va_list args, case INT: value = va_arg (args, int); break; + case INTMAX: + value = va_arg (args, intmax_t); + break; case LONG: value = va_arg (args, long); break; @@ -241,6 +244,9 @@ __vprintf (const char *format, va_list args, case INT: value = va_arg (args, unsigned); break; + case INTMAX: + value = va_arg (args, uintmax_t); + break; case LONG: value = va_arg (args, unsigned long); break; -- 2.30.2