]> Zhao Yanbai Git Server - minix.git/commitdiff
stdio: j modifier for %d. (Contributed by Buccapatnam Tirumala, Gautam)
authorBen Gras <ben@minix3.org>
Tue, 22 Jun 2010 16:22:17 +0000 (16:22 +0000)
committerBen Gras <ben@minix3.org>
Tue, 22 Jun 2010 16:22:17 +0000 (16:22 +0000)
lib/libc/stdio/doprnt.c

index d1cf1d26c0b622811132abe539a1fc36d88ab7cf..432b5edce1b509562350b7eaa161248eb054e1b1 100644 (file)
@@ -187,6 +187,12 @@ _doprnt(register const char *fmt, va_list ap, FILE *stream)
                        case 'h':
                                flags |= FL_SHORT;
                                break;
+                       case 'j':       
+                               flags |= FL_LONG;
+#if defined(__LONG_LONG_SUPPORTED)
+                               flags |= FL_LONGLONG;
+#endif
+                               break;
                        case 'l':       
                                if(flags & FL_LONG)
                                        flags |= FL_LONGLONG;