• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: long long int
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: long long int


  • Subject: Re: long long int
  • From: Nat! <email@hidden>
  • Date: Sun, 20 Jan 2002 18:40:08 +0100

On Sonntag, Januar 20, 2002, at 06:19 Uhr, 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.


Might be a fluke, but

#include <stdio.h>

main()
{
printf( "%#qX\n", 0x12345678AAAAULL);
}

produces

0X12345678AAAA

now there's a bug, as you don't want 0X but 0x...

Nat!
------------------------------------------------------
Some people drink deep from the fountains of life, and
some just gargle. -- DLR


References: 
 >long long int (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: long long int
  • Next by Date: Location of .jar files?
  • Previous by thread: Re: long long int
  • Next by thread: Re: long long int
  • Index(es):
    • Date
    • Thread