mescc: Tinycc support: strtol stub.
* mlibc/include/stdlib.h (strtol): Declare. * mlibc/libc-mes+tcc.c (strtol): Add stub.
This commit is contained in:
parent
9f60904d1c
commit
c749bb5aa3
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue