]> granicus.if.org Git - php/commitdiff
add support for %I64(u|d) to sprintf() utilities
authorAntony Dovgal <tony2001@php.net>
Thu, 12 Apr 2007 22:00:56 +0000 (22:00 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 12 Apr 2007 22:00:56 +0000 (22:00 +0000)
main/snprintf.c

index 2aba6c1d0a47e58921870677305e7c5f2c8bd916..8b157bd4cbaf84581c971ee417e169b34286f518 100644 (file)
@@ -706,6 +706,16 @@ static int format_converter(register buffy * odp, const char *fmt, va_list ap) /
                                        fmt++;
                                        modifier = LM_LONG_DOUBLE;
                                        break;
+                               case 'I':
+                                       fmt++;
+#if SIZEOF_LONG_LONG
+                                       if (*fmt == '6' && *(fmt+1) == '4') {
+                                               fmt += 2;
+                                               modifier = LM_LONG_LONG;
+                                       } else
+#endif
+                                               modifier = LM_LONG;
+                                       break;
                                case 'l':
                                        fmt++;
 #if SIZEOF_LONG_LONG