freebsd-dev/contrib/mdocml/test-strcasestr.c
2016-01-15 23:28:12 +00:00

14 lines
223 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 cp != big + 2;
}