Kernel - Imported userland strtoi file (and other minor changes)
[tpg/acess2.git] / KernelLand / Kernel / libc.c
index 67ce9b2..a5f87e4 100644 (file)
@@ -67,15 +67,10 @@ EXPORT(CheckString);
 EXPORT(CheckMem);
 
 // === CODE ===
-/**
- * \brief Convert a string into an integer
- */
-int atoi(const char *string)
-{
-       int ret = 0;
-       ParseInt(string, &ret);
-       return ret;
-}
+// - Import userland stroi.c file
+#define _LIB_H_
+#include "../../Usermode/Libraries/libc.so_src/strtoi.c"
+
 int ParseInt(const char *string, int *Val)
 {
         int    ret = 0;

UCC git Repository :: git.ucc.asn.au