Subject: Re: Quad problems?
To: Rafal Boni <>
From: Chris G Demetriou <Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>
List: current-users
Date: 12/12/1994 16:15:04
>Before I send this off through send-pr, is printf *really* broken wrt. to 64bit
>types [ie, off_t's]??  This is what I get on my system, running current as of 
>2 or 3 days ago [completely rebuilt], x86-port.
> [ ... ]
> 	printf("[Int] Foo is: %d\n", foo);
> 	printf("[Quad] Foo is: %q\n", foo);
> [ ... ]
> [Int] Foo is: 101
> [Quad] Foo is: 

printf isn't broken, you conception of what 'q' does is.

'q', like 'l' is an argument size specifier, not a printing spec.

i.e. you need to use qd, not q, just as you need to use ld, not l.

e.g. under OSF/1:

        printf("%d\n", 10);
        printf("%l\n", 10);
        printf("%ld\n", 10);