1 2 3 4 5 6 7 8 9 10 11 12 13
#if defined(__linux__) || defined(__MINT__) # define _GNU_SOURCE /* strcasestr() */ #endif #include <string.h> int main(void) { const char *big = "BigString"; char *cp = strcasestr(big, "Gst"); return(big + 2 != cp); }