• 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: Problem mac os X version 10.6 when using sprinft
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Problem mac os X version 10.6 when using sprinft
      • From: "Sean McBride" <email@hidden>
References: 
 >Problem mac os X version 10.6 when using sprinft (From: paul morel <email@hidden>)

  • Prev by Date: Re: EXC_BAD_ACCESS on breakpoint
  • Next by Date: Re: Problem with font display
  • Previous by thread: Re: Problem mac os X version 10.6 when using sprinft
  • Next by thread: Re: Problem mac os X version 10.6 when using sprinft
  • Index(es):
    • Date
    • Thread