source:
asp3_tinet_ecnl_arm/trunk/musl-1.1.18/src/string/strcasestr.c@
352
Last change on this file since 352 was 352, checked in by , 6 years ago | |
---|---|
|
|
File size: 188 bytes |
Rev | Line | |
---|---|---|
[352] | 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 | } |
Note:
See TracBrowser
for help on using the repository browser.