summaryrefslogtreecommitdiffstats
path: root/contrib/mdocml/test-strcasestr.c
blob: 479ba9138f856f6f8a65446740211abc4db4c440 (plain)
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);
}
OpenPOWER on IntegriCloud