freebsd-dev/contrib/mandoc/test-strcasestr.c
Baptiste Daroussin 61d06d6bd1 Import mandoc 1.14.4
Approved by:	re (kib)
MFC after:	1 week
2018-09-20 10:58:52 +00:00

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