Re[2]: itoa...
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
References: | |
| >itoa... (From: Brian OBrien <email@hidden>) |
| >Re: itoa... (From: "Shawn Erickson" <email@hidden>) |