thank you, i think there is something wrong with the gcc or strcasestr, but it doesn't matter, i can manually convert it by (char*)((long)strcasestr(a,b))
I doubt it. I expect rather you need to do what the manpage for strcasestr recommends and do:
#define _GNU_SOURCE
#include <string.h>
Eric