• 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: strange atof error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strange atof error


  • Subject: Re: strange atof error
  • From: Eric Albert <email@hidden>
  • Date: Mon, 20 Feb 2006 02:27:01 -0800

On Feb 16, 2006, at 9:40 AM, Benoit Ogier wrote:

I'm working on an applications that use a framework, and i've just found a strange bug : if i use atof or strtod in my framework code, the result is always -161060380 for a "0" input, and 817883912 in other cases. With the same code in my application, the result is ok.

Any suggestion ?

Make sure the right prototype for atof is in scope at the point where it's called. In other words, make sure you've #include'd stdlib.h and haven't done anything like '#undef atof'.


Hope this helps,
Eric

_______________________________________________
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: 
 >strange atof error (From: Benoit Ogier <email@hidden>)

  • Prev by Date: Re: debugging on Intel macs
  • Next by Date: Re: C++ Headers in /usr/include
  • Previous by thread: strange atof error
  • Next by thread: nib file crash and burn
  • Index(es):
    • Date
    • Thread