5 /* strchr( const char *, int )
7 This file is part of the Public Domain C Library (PDCLib).
8 Permission is granted to use, modify, and / or redistribute at will.
15 char * strchr( const char * s, int c )
30 #include <_PDCLIB_test.h>
34 char abccd[] = "abccd";
36 TESTCASE( strchr( abccd, 'x' ) == NULL );
37 TESTCASE( strchr( abccd, 'a' ) == &abccd[0] );
38 TESTCASE( strchr( abccd, 'd' ) == &abccd[4] );
39 TESTCASE( strchr( abccd, '\0' ) == &abccd[5] );
40 TESTCASE( strchr( abccd, 'c' ) == &abccd[2] );