Re: sprintf and 64-bit integers
Re: sprintf and 64-bit integers
- Subject: Re: sprintf and 64-bit integers
- From: Greg Guerin <email@hidden>
- Date: Sun, 13 Sep 2009 11:21:35 -0700
char str[10];
sprintf(str, "%d", val);
What is the value of val at the time the crash occurs? Will it
always convert to 9 digits or less?
What value is sprintf() returning?
You might want to use snprintf() or asprintf().
-- GG
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden