Re: long long int
Re: long long int
- Subject: Re: long long int
- From: Gregory Weston <email@hidden>
- Date: Sun, 20 Jan 2002 20:34:33 -0500
On 1/20/02 at 2:55 PM, Gerriet M. Denkmann wrote:
>
Thanks to Nat! and to Kenneth Dyke, email@hidden (personal),
>
email@hidden (work)
>
I have got this thing to work.
>
>
The correct form is:
>
>
...
>
>
So there are actually two bugs:
>
1. man printf
>
2. the compiler accepts L but does not produce working code
By way of clarification, the compiler does, in fact, produce working code. It's
just not what you expect because you lied to printf about the data type. The
printf function doesn't know what kind of data you've passed and the compiler
doesn't care a whit about what's in a printf(-style) format string as compared
to any other string. Welcome to the woonderful world of varargs.
G