freebsd-dev/contrib/mdocml/test-strcasestr.c
2014-11-22 18:57:23 +00:00

14 lines
224 B
C

#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);
}