• 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
format specifiers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

format specifiers


  • Subject: format specifiers
  • From: David Thorp <email@hidden>
  • Date: Mon, 4 Aug 2003 19:25:50 +1000

Another quick question...

This book I'm reading seems to make no distinctions between the following (used in the printf() function for example)...

%d vs %i

%x vs %X
%e vs %E
%g vs %G

%lu vs %Lu
%ld vs %Ld
%li vs %Li (actually it doesn't mention these two at all, I'm just assuming they exist. Do they?)

...except to say note the capitals and note the lowercase letters for the latter six.

What is the difference between each item in the pairs above, if any? Are each in each pair interchangeable or are there differences?

Thanks in advance!
David.
_______________________________________________
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.

  • Prev by Date: break, continue, goto
  • Next by Date: Re: [ObjC newbie]: dereferencing pointer to incomplete type
  • Previous by thread: Re: break, continue, goto
  • Next by thread: RE: format specifiers
  • Index(es):
    • Date
    • Thread