aboutsummaryrefslogtreecommitdiff
path: root/lib/mprintf.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-01-05 22:29:29 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-01-05 22:29:29 +0000
commitb60e0fa97ed7ddc66d0ad6d00dfd78319bb6ad36 (patch)
tree50a5aed5fe1754b59f331e8c4337c8301121e1c7 /lib/mprintf.c
parent41c6f68d949bf6021fbf4d3488bbf38efa898816 (diff)
David J Meyer's large file support.
Diffstat (limited to 'lib/mprintf.c')
-rw-r--r--lib/mprintf.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/mprintf.c b/lib/mprintf.c
index 6cb345a58..2b1356af7 100644
--- a/lib/mprintf.c
+++ b/lib/mprintf.c
@@ -167,7 +167,7 @@ static BOOL dprintf_IsQualifierNoDollar(char c)
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
case 'h': case 'l': case 'L': case 'Z': case 'q':
- case '*':
+ case '*': case 'O':
return TRUE;
default:
return FALSE;
@@ -376,6 +376,13 @@ static int dprintf_Pass1(char *format, va_stack_t *vto, char **endpos, va_list a
if (sizeof(size_t) > sizeof(unsigned int))
flags |= FLAGS_LONG;
break;
+ case 'O':
+ if (sizeof(off_t) > sizeof(unsigned long int)) {
+ flags |= FLAGS_LONGLONG;
+ } else if (sizeof(off_t) > sizeof(unsigned int)) {
+ flags |= FLAGS_LONG;
+ }
+ break;
case '0':
if (!(flags & FLAGS_LEFT))
flags |= FLAGS_PAD_NIL;