summaryrefslogtreecommitdiffstats
path: root/test-strcasestr.c
diff options
context:
space:
mode:
Diffstat (limited to 'test-strcasestr.c')
-rw-r--r--test-strcasestr.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test-strcasestr.c b/test-strcasestr.c
new file mode 100644
index 00000000..2ffb420b
--- /dev/null
+++ b/test-strcasestr.c
@@ -0,0 +1,9 @@
+#include <string.h>
+
+int
+main(void)
+{
+ const char *big = "BigString";
+ char *cp = strcasestr(big, "Gst");
+ return(big + 2 != cp);
+}