[En-Nut-Discussion] Problem with stdlib.h on Linux

Robert Mutke robert.mutke at gmail.com
Fri Feb 4 18:05:18 CET 2005


Thanks a lot! It works :-)

Robert


On Fri, 04 Feb 2005 17:13:47 +0100, Harald Kipp <harald.kipp at egnite.de> wrote:
> Robert,
> 
> Looks like atof has changed in this lib and conflicts with
> 
>    #ifndef atof
>    #define atof(s)           strtod(s, 0)
>    #endif
> 
> from Nut/OS' include/arch/avr.h.
> 
> For now you may remove those three lines.
> 
> Harald
> 
> 
> At 16:29 04.02.2005 +0100, you wrote:
> >Hello Harald,
> >
> >This is it (lines 358-376):
> >
> >extern double strtod(const char *__nptr, char **__endptr);
> >
> >/**
> >     The atof() function converts the initial portion of the string pointed
> >     to by \c nptr to double representation.
> >
> >     It is equivalent to calling
> >
> >                \code strtod(nptr, (char **)NULL); \endcode
> >*/
> >
> >extern double atof(const char *__nptr);
> >
> >/** Highest number that can be generated by rand(). */
> >#define RAND_MAX 0x7FFF
> >
> >/**
> >     The rand() function computes a sequence of pseudo-random integers in the
> >     range of 0 to \c RAND_MAX (as defined by the header file <stdlib.h>).
> >
> >==
> >I can't see anything wrong with atof definition :-/
> >
> >Robert
> 
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
>



More information about the En-Nut-Discussion mailing list