freebsd-dev/test-strcasestr.c

14 lines
224 B
C
Raw Normal View History

2014-11-22 18:08:25 +00:00
#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);
}