Index: ChangeLog =================================================================== RCS file: /cvsroot/avr-libc/avr-libc/ChangeLog,v retrieving revision 1.403 diff -u -u -r1.403 ChangeLog --- ChangeLog 19 Sep 2004 21:04:13 -0000 1.403 +++ ChangeLog 19 Sep 2004 21:29:59 -0000 @@ -1,5 +1,9 @@ 2004-09-19 Joerg Wunsch + * include/stdlib.h: enable and document atof(). + +2004-09-19 Joerg Wunsch + * libc/stdio/vfscanf.c: Fix a logical flaw that caused characters > 'Z' && < 'a' to be misdetected as valid hex digits. Fix for bug #10420. Index: include/stdlib.h =================================================================== RCS file: /cvsroot/avr-libc/avr-libc/include/stdlib.h,v retrieving revision 1.18 diff -u -u -r1.18 stdlib.h --- include/stdlib.h 23 Jul 2004 13:02:39 -0000 1.18 +++ include/stdlib.h 19 Sep 2004 21:30:00 -0000 @@ -377,6 +377,17 @@ 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 + + strtod(nptr, (char **)NULL); + */ + +extern double atof(const char *__nptr); + /** Highest number that can be generated by rand(). */ #define RAND_MAX 0x7FFF @@ -613,7 +624,6 @@ #if 0 /* not yet implemented */ extern int atexit(void (*)(void)); -extern double atof(const char *); extern void *realloc(void *, size_t); #endif