提交 e864ddc3 编写于 作者: R Rich Felker

replace stub with working strcasestr

上级 330fd962
#define _GNU_SOURCE
#include <string.h>
char *strcasestr(const char *h, const char *n)
{
//FIXME!
return strstr(h, n);
size_t l = strlen(n);
for (; *h; h++) if (!strncasecmp(h, n, l)) return (char *)h;
return 0;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册