repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
time: fix incorrect DST offset when using POSIX timezones without DST
[musl.git]
/
src
/
string
/
strcasestr.c
blob
af109f3611bd4d917fc9311308006b867bcd8780
1
#define _GNU_SOURCE
2
#include <string.h>
3
4
char
*
strcasestr
(
const char
*
h
,
const char
*
n
)
5
{
6
size_t
l
=
strlen
(
n
);
7
for
(; *
h
;
h
++)
if
(!
strncasecmp
(
h
,
n
,
l
))
return
(
char
*)
h
;
8
return
0
;
9
}