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

RE: format specifiers


  • Subject: RE: format specifiers
  • From: email@hidden
  • Date: Mon, 4 Aug 2003 10:42:01 +0100

David,

Checkout man printf:

At a terminal window type:

man printf

This will display the help for printf, which includes the formatting
information.

Almost all standard C functions have a man page, you will probably find this
useful to have alongside the book you're following.

Alun Carp
Driver Development Team Leader
Data Encryption Systems Limited


-----Original Message-----
From: David Thorp [mailto:email@hidden]
Sent: 04 August 2003 10:26
To: email@hidden; email@hidden
Subject: format specifiers


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.
_______________________________________________
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.

  • Follow-Ups:
    • RE: format specifiers
      • From: "M. Uli Kusterer" <email@hidden>
    • Re: format specifiers
      • From: David Thorp <email@hidden>
  • Prev by Date: Re: [ObjC newbie]: dereferencing pointer to incomplete type
  • Next by Date: Re: format specifiers
  • Previous by thread: format specifiers
  • Next by thread: Re: format specifiers
  • Index(es):
    • Date
    • Thread