mirror of
https://github.com/fluencelabs/musl
synced 2025-06-12 22:41:37 +00:00
replace stub with working strcasestr
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
#define _GNU_SOURCE
|
||||
#include <string.h>
|
||||
|
||||
char *strcasestr(const char *h, const char *n)
|
||||
{
|
||||
//FIXME!
|
||||
return strstr(h, n);
|
||||
size_t l = strlen(n);
|
||||
for (; *h; h++) if (!strncasecmp(h, n, l)) return (char *)h;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user