• 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: 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


  • Prev by Date: Re: SIGBUS and NSLog
  • Next by Date: [OFF] Writing plugins for PB
  • Previous by thread: Re: long long int
  • Next by thread: Location of .jar files?
  • Index(es):
    • Date
    • Thread