Re: long long int
Re: long long int
- Subject: Re: long long int
- From: "Kenneth C. Dyke" <email@hidden>
- Date: Sun, 20 Jan 2002 09:40:13 -0800
Try using 'q' instead of 'x' for 64-bit quantities. That should work
for printf at least. I don't know off the top of my head whether
NSLog() groks that or not.
-Ken
On Sunday, January 20, 2002, at 09:19 AM, Gerriet M. Denkmann wrote:
unsigned long long ul64 = 0x12312345678ULL ;
unsigned long ul32 = 0x87654321UL ;
NSLog(@"\nul64 %#-13x ul32 %#10x", ul64, ul32);
printf("ul64 %#-13Lx ul32 %#10lx\n", ul64, ul32);
both return: ul64 0x123 ul32 0x12345678
should return: ul64 0x12312345678 ul32 0x87654321
What is the prefered work-around for this bug or feature?
Gerriet.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
Kenneth Dyke, email@hidden (personal), email@hidden (work)
Sr. Mad Scientist, MacOS X OpenGL Group, Apple Computer, Inc.
C++ is to C as Lung Cancer is to Lung
References: | |
| >long long int (From: "Gerriet M. Denkmann" <email@hidden>) |