[freenos] r354 committed - Modified atoi() to invoke strtol() with a ZERO base....

  • From: codesite-noreply@xxxxxxxxxx
  • To: freenos@xxxxxxxxxxxxx
  • Date: Sat, 05 Sep 2009 09:03:34 +0000

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);
+}

Other related posts:

  • » [freenos] r354 committed - Modified atoi() to invoke strtol() with a ZERO base.... - codesite-noreply