From ec335eef504e94529855a006076fe5464b4e7c47 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Mon, 24 Jul 2017 18:08:02 +0200 Subject: [PATCH] mescc: Tinycc support: strtoull stub. * mlibc/include/stdlib.h (strtoull): Declare. * mlibc/libc-mes+tcc.c (strtoull): Add stub. --- mlibc/include/stdlib.h | 1 + mlibc/libc-mes+tcc.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/mlibc/include/stdlib.h b/mlibc/include/stdlib.h index 43ed3215..cc5f32ea 100644 --- a/mlibc/include/stdlib.h +++ b/mlibc/include/stdlib.h @@ -41,6 +41,7 @@ void qsort (void *base, size_t nmemb, size_t size, int (*compar)(void const *, v void *realloc (void *p, size_t size); long strtol (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); #endif // !(__GNUC__ && POSIX) diff --git a/mlibc/libc-mes+tcc.c b/mlibc/libc-mes+tcc.c index 0bc5c704..797ff1fb 100644 --- a/mlibc/libc-mes+tcc.c +++ b/mlibc/libc-mes+tcc.c @@ -148,6 +148,12 @@ strtoul (char const *nptr, char **endptr, int base) return 0; } +unsigned long long +strtoull (char const *nptr, char **endptr, int base) +{ + return 0; +} + time_t time (time_t *tloc) { return 0;