summaryrefslogblamecommitdiffstats
path: root/test-strcasestr.c
blob: c3a87de82e16a433deb17df446f512e5c184b4ed (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11



                                           






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