• 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[2]: itoa...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re[2]: itoa...


  • Subject: Re[2]: itoa...
  • From: Peter Mulholland <email@hidden>
  • Date: Wed, 12 Sep 2007 00:08:31 +0100

Hello Shawn,

Wednesday, September 12, 2007, 12:01:05 AM, you wrote:

> On 9/11/07, Brian OBrien <email@hidden> wrote:
>> I am using a function called itoa.
>> It compiles and links...
>> but at runtime I get an exception thrown...

> "The function itoa is not a standard C library function and it is not
> included in the system libraries provided by Mac OS X. CodeWarrior
> does supply this function, in the header extras.h. If your code uses
> this function, you should replace it with printf or some other
> equivalent function."

He says it compiles and links, which means it IS in the libs (probably
in some gcc support lib). I don't know what's causing this error
though.

I'd recommend using snprintf() anyway, as then you can specify the
buffer size and avoid a possible overflow bug. You also get better
control over how the number is formatted (eg with leading zeroes)

--
Best regards,
 Peter                            mailto:email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Re[2]: itoa...
      • From: "Shawn Erickson" <email@hidden>
    • Re: Re[2]: itoa...
      • From: "Justin C. Walker" <email@hidden>
References: 
 >itoa... (From: Brian OBrien <email@hidden>)
 >Re: itoa... (From: "Shawn Erickson" <email@hidden>)

  • Prev by Date: Re: itoa...
  • Next by Date: Re: Re[2]: itoa...
  • Previous by thread: Re: itoa...
  • Next by thread: Re: Re[2]: itoa...
  • Index(es):
    • Date
    • Thread