Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
29f3202b731185d993a399f04d2f3e3f78db5a81
/
.
/
src
/
string
/
strcasestr.c
blob: af109f3611bd4d917fc9311308006b867bcd8780 [
file
] [
log
] [
blame
]
#define
_GNU_SOURCE
#include
<string.h>
char
*
strcasestr
(
const
char
*
h
,
const
char
*
n
)
{
size_t
l
=
strlen
(
n
);
for
(;
*
h
;
h
++)
if
(!
strncasecmp
(
h
,
n
,
l
))
return
(
char
*)
h
;
return
0
;
}