mescc: Tinycc support: strchr stub.

* mlibc/include/string.h (strchr): Declare.
* mlibc/libc-mes+tcc.c (strchr): Add stub.
This commit is contained in:
Jan Nieuwenhuizen 2017-07-24 13:46:32 +02:00
parent 718410e426
commit ecf0fb50b1
2 changed files with 7 additions and 0 deletions

View File

@ -45,6 +45,7 @@ void *memset (void *s, int c, size_t n);
int memcmp (void const *s1, void const *s2, size_t n);
size_t strlen (char const*);
char *strchr (char const *s, int c);
int strcmp (char const*, char const*);
int strncmp (char const*, char const*, size_t);
char *strcpy (char *dest, char const *src);

View File

@ -74,6 +74,12 @@ snprintf(char *str, size_t size, char const *format, ...)
return 0;
}
char *
strchr (char const *s, int c)
{
return 0;
}
unsigned long
strtoul (char const *nptr, char **endptr, int base)
{