]> granicus.if.org Git - file/commitdiff
Initial revision
authorIan Darwin <ian@darwinsys.com>
Mon, 5 Oct 1987 21:29:54 +0000 (21:29 +0000)
committerIan Darwin <ian@darwinsys.com>
Mon, 5 Oct 1987 21:29:54 +0000 (21:29 +0000)
src/teststrchr.c [new file with mode: 0644]

diff --git a/src/teststrchr.c b/src/teststrchr.c
new file mode 100644 (file)
index 0000000..adf92ba
--- /dev/null
@@ -0,0 +1,16 @@
+#define NULL 0
+main()
+{
+       char    *strchr();
+
+       if (strchr("abc", 'c') == NULL)
+               printf("error 1\n");
+       if (strchr("abc", 'd') != NULL)
+               printf("error 2\n");
+       if (strchr("abc", 'a') == NULL)
+               printf("error 3\n");
+       if (strchr("abc", 'c') == NULL)
+               printf("error 4\n");
+}
+
+