用过code::block的人进一下关于strchr()
#include <stdio.h>int main()
{
char *p;
p=strchr("ffffffsddd",'s');
return 0;
}
明明对的代码为什么用code::block编译的时候会p=strchr("ffffffsddd",'s');这行爆出一个warning啊 。。
郁闷中。。。

Murphy's Law :
If there are two or more ways to do something, and one of those ways can result in a catastrophe, then someone will do it.