From: Ian Darwin Date: Mon, 5 Oct 1987 21:29:54 +0000 (+0000) Subject: Initial revision X-Git-Tag: FILE3_27~381 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=56944be99c15b7591df5e4bd1f1da6b27ddc6b57;p=file Initial revision --- 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"); +} + +