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

index 65432851325088bcfba9910a8d54f24694230221..854e62b64ce419ce643656bab7c2a2ff08492225 100644 (file)
@@ -708,6 +708,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