mescc: Tinycc support: strtoul stub.

* mlibc/include/stdlib.h (strtoul): Declare.
* mlibc/libc-mes+tcc.c (strtoul): Add stub.
This commit is contained in:
Jan Nieuwenhuizen 2017-07-24 13:10:27 +02:00
parent 5c338ef705
commit ce9f0b12d0
2 changed files with 10 additions and 3 deletions

View File

@ -33,11 +33,12 @@
typedef long size_t;
#endif
char* getenv (char const* s);
int atoi (char const *s);
void *malloc (size_t);
void *realloc (void *p, size_t size);
void exit (int);
char* getenv (char const* s);
void *malloc (size_t);
unsigned long strtoul (char const *nptr, char **endptr, int base);
void *realloc (void *p, size_t size);
#endif // !(__GNUC__ && POSIX)

View File

@ -53,3 +53,9 @@ memcmp (void const *s1, void const *s2, size_t n)
{
return 0;
}
unsigned long
strtoul (char const *nptr, char **endptr, int base)
{
return 0;
}