• 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: # flag used with printf warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: # flag used with printf warning


  • Subject: Re: # flag used with printf warning
  • From: Clark Cox <email@hidden>
  • Date: Wed, 28 Apr 2004 21:08:32 -0400

On Apr 28, 2004, at 16:48, Paul Russell wrote:

On Apr 27, 2004, at 11:01 AM, Chris Espinosa wrote:

The portable way to printf a Pascal string is

	printf("%*s\n", pstring[0], &pstring[1]);



While we're on this subject, is there a portable way to printf long longs ?


It seems that some compilers/libraries use %lld while others use %Ld.

The C99 standard says that %lld is the correct way to do this, but not everyone has caught up (before C99, there was no standard, because long long was just a common compiler extension).



-- Clark S. Cox III email@hidden http://homepage.mac.com/clarkcox3/ http://homepage.mac.com/clarkcox3/blog/B1196589870/index.html _______________________________________________ xcode-users mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users Do not post admin requests to the list. They will be ignored.


References: 
 >Re: # flag used with printf warning (From: Ken Turkowski <email@hidden>)
 >Re: # flag used with printf warning (From: Chris Espinosa <email@hidden>)
 >Re: # flag used with printf warning (From: Paul Russell <email@hidden>)

  • Prev by Date: Re: SysV Shared Memory Problems
  • Next by Date: library dependancies
  • Previous by thread: Re: # flag used with printf warning
  • Next by thread: Erratic autocomplete behavior
  • Index(es):
    • Date
    • Thread