Re: long long int
Re: long long int
- Subject: Re: long long int
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Sun, 20 Jan 2002 19:58:21 +0100
Thanks to Nat! and to Kenneth Dyke, email@hidden (personal),
email@hidden (work)
I have got this thing to work.
The correct form is:
unsigned long long ul64 = 0x12312345678ULL ;
unsigned long ul32 = 0x87654321UL ;
NSLog(@"ul64 %#qx ul32 %#x", ul64, ul32);
printf("ul64 %#qx ul32 %#lx\n", ul64, ul32);
And I checked again man printf, and did not find the q(long long -
working), nor the l (long) or L (long long - not working) modifiers.
So there are actually two bugs:
1. man printf
2. the compiler accepts L but does not produce working code
Thanks for the prompt help!
Gerriet.