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