From 56944be99c15b7591df5e4bd1f1da6b27ddc6b57 Mon Sep 17 00:00:00 2001 From: Ian Darwin Date: Mon, 5 Oct 1987 21:29:54 +0000 Subject: [PATCH] Initial revision --- src/teststrchr.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/teststrchr.c diff --git a/src/teststrchr.c b/src/teststrchr.c new file mode 100644 index 00000000..adf92bae --- /dev/null +++ b/src/teststrchr.c @@ -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"); +} + + -- 2.40.0