[OCLUG-devel] problems with atof()
Christopher Smith
x at xman.org
Sun Jul 11 21:44:29 PDT 2004
On Sun, 2004-07-11 at 20:46, James Colannino wrote:
> Christopher Smith wrote:
> > On Sun, 2004-07-11 at 16:40, James Colannino wrote:
> >
> >>Anyone know why the following won't work? I'm compiling with gcc 3.3.3
> >>if that makes a difference.
> >
> >
> > You failed to #include <stdlib.h>, which is where atof() is defined.
>
> Wow...how embarrasing... :-P
Nah, it's the kind of mistake we all make. Notice that noone else
figured out this problem. ;-)
> But this begs the question: if I was trying to use a function that
> wasn't defined, then why didn't I get a compiler error?
My guess is that there is a compiler builtin for atof() with a slightly
different signature from the standard function.
--
Christopher Smith <x at xman.org>
More information about the OCLUG-devel
mailing list