[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] atof routine

From: Colin O'Flynn
Subject: Re: [avr-libc-dev] atof routine
Date: Thu, 17 Apr 2003 04:45:02 -0700 (PDT)


>#define atof(s) strtod(s, (char **)0)

Hmm THAT is certainly easier, I didn't notice the
strtod() routine ;-) Maybe a note could be added to
the stdlib.h file that points to the strtod()

Or move the routine up with the rest of the strtoX
routines, as I looked there, then looked down at the
bottem with the unimplemented routines. 

Dang, and I had my fancy-smancy routine all planned
out :p 

I noticed the routine says: implemented, but not yet
tested. I could do a bit of quick testing (writing
values and reading them out basically).



--- Joerg Wunsch <address@hidden> wrote:
> As Colin O'Flynn wrote:
> > I'm in need of a atof routine for my latest
> project,
> > and noticed that stdlib doesn't have one yet.
> #include <stdlib.h>
> #define atof(s) strtod(s, (char **)0)
> :-)
> Don't forget to link against libm.a (-lm), for
> hysterical raisins,
> strtod() in avr-libc is part of the math library.
> -- 
> J"org Wunsch                                         Unix support engineer
> address@hidden       

reply via email to

[Prev in Thread] Current Thread [Next in Thread]