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: Fritz Anderson <email@hidden>
- Date: Fri, 7 May 2010 15:03:31 -0500
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.
— F
_______________________________________________
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