mescc: Tinycc support: strstr stub.

* mlibc/include/string.h (strstr): Declare.
* mlibc/libc-mes+tcc.c (strstr): Add stub.
This commit is contained in:
Jan Nieuwenhuizen 2017-07-24 19:54:32 +02:00
parent d4e9659d19
commit fd63f744f7
2 changed files with 7 additions and 0 deletions

View File

@ -50,6 +50,7 @@ int strcmp (char const*, char const*);
char *strcpy (char *dest, char const *src);
int strncmp (char const*, char const*, size_t);
char *strrchr (char const *s, int c);
char *strstr (char const *haystack, char const *needle);
#endif // ! (__GNUC__ && POSIX)

View File

@ -172,6 +172,12 @@ strrchr (char const *s, int c)
return 0;
}
char *
strstr (char const *haystack, char const *needle)
{
return 0;
}
long
strtol (char const *nptr, char **endptr, int base)
{