diff --git a/mlibc/include/stdlib.h b/mlibc/include/stdlib.h index cc5f32ea..0525bb2c 100644 --- a/mlibc/include/stdlib.h +++ b/mlibc/include/stdlib.h @@ -40,6 +40,7 @@ void *malloc (size_t); void qsort (void *base, size_t nmemb, size_t size, int (*compar)(void const *, void const *)); void *realloc (void *p, size_t size); long strtol (char const *nptr, char **endptr, int base); +long long strtoll (char const *nptr, char **endptr, int base); unsigned long strtoul (char const *nptr, char **endptr, int base); unsigned long long strtoull (char const *nptr, char **endptr, int base); diff --git a/mlibc/libc-mes+tcc.c b/mlibc/libc-mes+tcc.c index 797ff1fb..da56ff35 100644 --- a/mlibc/libc-mes+tcc.c +++ b/mlibc/libc-mes+tcc.c @@ -142,6 +142,12 @@ strtol (char const *nptr, char **endptr, int base) return 0; } +long long int +strtoll (char const *nptr, char **endptr, int base) +{ + return 0; +} + unsigned long strtoul (char const *nptr, char **endptr, int base) {