3 /* strpbrk( const char *, const char * )
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 * strpbrk( const char * s1, const char * s2 )
35 #include <_PDCLIB_test.h>
39 TESTCASE( strpbrk( abcde, "x" ) == NULL );
40 TESTCASE( strpbrk( abcde, "xyz" ) == NULL );
41 TESTCASE( strpbrk( abcdx, "x" ) == &abcdx[4] );
42 TESTCASE( strpbrk( abcdx, "xyz" ) == &abcdx[4] );
43 TESTCASE( strpbrk( abcdx, "zyx" ) == &abcdx[4] );
44 TESTCASE( strpbrk( abcde, "a" ) == &abcde[0] );
45 TESTCASE( strpbrk( abcde, "abc" ) == &abcde[0] );
46 TESTCASE( strpbrk( abcde, "cba" ) == &abcde[0] );