[En-Nut-Discussion] Problem with stdlib.h on Linux
Harald Kipp
harald.kipp at egnite.de
Fri Feb 4 17:13:47 CET 2005
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
More information about the En-Nut-Discussion
mailing list