From 6301eb9d1a0f13837020ac1f718943553e1eecfe 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