X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Flibc.c;h=a5f87e43c65a9fabb9a17ae7b919d658bcd387d1;hb=d69e48450c7ea4be4a82c351b2d5dd0de3fc6241;hp=67ce9b2e0d96b96ca84d6bc7be2e2d4b042c79a8;hpb=9c8b7750be573fbe40bdb3dc4c2a9a5390970b39;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/libc.c b/KernelLand/Kernel/libc.c index 67ce9b2e..a5f87e43 100644 --- a/KernelLand/Kernel/libc.c +++ b/KernelLand/Kernel/libc.c @@ -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;