Implement (u)intmax_t in printf().
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 21 Sep 2004 04:45:34 +0000 (04:45 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 21 Sep 2004 04:45:34 +0000 (04:45 +0000)
(How'd I forget that?)

src/lib/stdio.c

index 034374d7aa9011b836890529523e372a64afebdf..13df2c7703fb47defa6fd3d9d0b9f71605961879 100644 (file)
@@ -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;