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