Revision: 354 Author: nieklinnenbank Date: Sat Sep 5 02:02:27 2009 Log: Modified atoi() to invoke strtol() with a ZERO base. This enables user applications to use atoi() on both decimal and hexadecimal numbers. http://code.google.com/p/freenos/source/detail?r=354 Modified: /trunk/lib/libc/stdlib/atoi.c ======================================= --- /trunk/lib/libc/stdlib/atoi.c Thu Apr 9 14:46:04 2009 +++ /trunk/lib/libc/stdlib/atoi.c Sat Sep 5 02:02:27 2009 @@ -19,5 +19,5 @@ int atoi(const char *nptr) { - return (int) strtol(nptr, ZERO, 10); -} + return (int) strtol(nptr, 0, 0); +}