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