Re: long long int
Re: long long int
- Subject: Re: long long int
- From: "Kenneth C. Dyke" <email@hidden>
- Date: Sun, 20 Jan 2002 12:35:20 -0800
On Sunday, January 20, 2002, at 10:58 AM, Gerriet M. Denkmann wrote:
Thanks to Nat! and to Kenneth Dyke, email@hidden (personal),
email@hidden (work)
I have got this thing to work.
Except that I got it wrong. I forgot that q was just a modifier. My
bad, but glad you got it working.
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
Try doing "man 3 printf". The man page you get with just doing "man
printf" is for /usr/bin/printf.
-Ken
Kenneth Dyke, email@hidden (personal), email@hidden (work)
Sr. Mad Scientist, MacOS X OpenGL Group, Apple Computer, Inc.
Java: The blazing speed of SmallTalk with the simple elegance of C++.