1 /* strpbrk( const char *, const char * )
3 This file is part of the Public Domain C Library (PDCLib).
4 Permission is granted to use, modify, and / or redistribute at will.
11 char * strpbrk( const char * s1, const char * s2 )
33 #include <_PDCLIB_test.h>
37 TESTCASE( strpbrk( abcde, "x" ) == NULL );
38 TESTCASE( strpbrk( abcde, "xyz" ) == NULL );
39 TESTCASE( strpbrk( abcdx, "x" ) == &abcdx[4] );
40 TESTCASE( strpbrk( abcdx, "xyz" ) == &abcdx[4] );
41 TESTCASE( strpbrk( abcdx, "zyx" ) == &abcdx[4] );
42 TESTCASE( strpbrk( abcde, "a" ) == &abcde[0] );
43 TESTCASE( strpbrk( abcde, "abc" ) == &abcde[0] );
44 TESTCASE( strpbrk( abcde, "cba" ) == &abcde[0] );