Sign in
cobalt
/
cobalt
/
3cd5432aaed8f14f27f66ade1b51aa71df939492
/
.
/
third_party
/
musl
/
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
;
}