Return to test-strcasestr.c CVS log | Up to [cvsweb.bsd.lv] / mandoc |
version 1.2, 2014/08/05 16:03:03 | version 1.4, 2018/08/15 02:15:52 | ||
---|---|---|---|
|
|
||
#if defined(__linux__) || defined(__MINT__) | |||
# define _GNU_SOURCE /* strcasestr() */ | |||
#endif | |||
#include <string.h> | #include <string.h> | ||
int | int | ||
|
|
||
{ | { | ||
const char *big = "BigString"; | const char *big = "BigString"; | ||
char *cp = strcasestr(big, "Gst"); | char *cp = strcasestr(big, "Gst"); | ||
return(big + 2 != cp); | return cp != big + 2; | ||
} | } |