Re: Problem mac os X version 10.6 when using sprinft
Re: Problem mac os X version 10.6 when using sprinft
- Subject: Re: Problem mac os X version 10.6 when using sprinft
- From: "Sean McBride" <email@hidden>
- Date: Fri, 7 May 2010 16:16:20 -0400
- Organization: Rogue Research Inc.
On Fri, 7 May 2010 15:03:31 -0500, Fritz Anderson said:
>On 7 May 2010, at 2:00 PM, paul morel wrote:
>
>> sprintf(sFormat, "%%d\t%%0.ß\t%%0.ß\t%%0.ß\t%%0.ß\n", n1, n1,
>n1, n1);
>
>You should also bear in mind that the printf() family lets you
>parameterize widths and precisions directly by using "*" instead of a
>number, and supplying the numbers in the parameter list. Maybe that helps.
>
>My vote is with the others: Your sFormat is probably too small, and you
>really should get in the habit of using a debugger.
Also, you should never use sprintf. Use snprintf instead.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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