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