diff options
Diffstat (limited to 'src/mlibc/stdlib/atoi.c')
-rw-r--r-- | src/mlibc/stdlib/atoi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mlibc/stdlib/atoi.c b/src/mlibc/stdlib/atoi.c index 34f9991..0643372 100644 --- a/src/mlibc/stdlib/atoi.c +++ b/src/mlibc/stdlib/atoi.c @@ -3,7 +3,8 @@ #include <stdint.h> #include <mlibc/string.h> -int atoi(char *str) { +int atoi(char *str) +{ size_t s_str = strlen(str); if (!s_str) return 0; |