Re: # flag used with printf warning
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.