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

remove unused but buggy code from strstr.c

上级 35c16933
......@@ -25,16 +25,6 @@ static char *fourbyte_strstr(const unsigned char *h, const unsigned char *n)
return *h ? (char *)h-3 : 0;
}
#if 0
static char *naive_strstr(const char *h, const char *n)
{
size_t i;
for (i=0; n[i] && h[i]; i++)
for ( ; n[i] != h[i]; h++, i=0);
return n[i] ? 0 : (char *)h;
}
#endif
#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册