1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00
freebsd/test-strcasestr.c
2014-11-22 18:08:25 +00:00

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