1 /* wcspbrk( const wchar_t *, const wchar_t * )
\r
3 This file is part of the Public Domain C Library (PDCLib).
\r
4 Permission is granted to use, modify, and / or redistribute at will.
\r
11 wchar_t * wcspbrk( const wchar_t * s1, const wchar_t * s2 )
\r
13 const wchar_t * p1 = s1;
\r
22 return (wchar_t *) p1;
\r
33 #include <_PDCLIB_test.h>
\r
37 TESTCASE( wcspbrk( wabcde, L"x" ) == NULL );
\r
38 TESTCASE( wcspbrk( wabcde, L"xyz" ) == NULL );
\r
39 TESTCASE( wcspbrk( wabcdx, L"x" ) == &wabcdx[4] );
\r
40 TESTCASE( wcspbrk( wabcdx, L"xyz" ) == &wabcdx[4] );
\r
41 TESTCASE( wcspbrk( wabcdx, L"zyx" ) == &wabcdx[4] );
\r
42 TESTCASE( wcspbrk( wabcde, L"a" ) == &wabcde[0] );
\r
43 TESTCASE( wcspbrk( wabcde, L"abc" ) == &wabcde[0] );
\r
44 TESTCASE( wcspbrk( wabcde, L"cba" ) == &wabcde[0] );
\r
45 return TEST_RESULTS;
\r