mirror of git://git.musl-libc.org/musl
replace stub with working strcasestr
This commit is contained in:
parent
330fd96213
commit
e864ddc368
|
@ -1,7 +1,9 @@
|
||||||
|
#define _GNU_SOURCE
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
char *strcasestr(const char *h, const char *n)
|
char *strcasestr(const char *h, const char *n)
|
||||||
{
|
{
|
||||||
//FIXME!
|
size_t l = strlen(n);
|
||||||
return strstr(h, n);
|
for (; *h; h++) if (!strncasecmp(h, n, l)) return (char *)h;
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue