mescc: Tinycc support: strtol stub.

* mlibc/include/stdlib.h (strtol): Declare.
* mlibc/libc-mes+tcc.c (strtol): Add stub.
This commit is contained in:
Jan Nieuwenhuizen 2017-07-24 17:38:25 +02:00
parent 9f60904d1c
commit c749bb5aa3
2 changed files with 7 additions and 0 deletions

View File

@ -39,6 +39,7 @@ char* getenv (char const* s);
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);
unsigned long strtoul (char const *nptr, char **endptr, int base);
#endif // !(__GNUC__ && POSIX)

View File

@ -136,6 +136,12 @@ strchr (char const *s, int c)
return 0;
}
long
strtol (char const *nptr, char **endptr, int base)
{
return 0;
}
unsigned long
strtoul (char const *nptr, char **endptr, int base)
{