1 /* wmemchr( const void *, int, size_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 * wmemchr( const wchar_t * p, wchar_t c, size_t n )
\r
17 return (wchar_t*) p;
\r
27 #include <_PDCLIB_test.h>
\r
31 TESTCASE( wmemchr( wabcde, L'c', 5 ) == &wabcde[2] );
\r
32 TESTCASE( wmemchr( wabcde, L'a', 1 ) == &wabcde[0] );
\r
33 TESTCASE( wmemchr( wabcde, L'a', 0 ) == NULL );
\r
34 TESTCASE( wmemchr( wabcde, L'\0', 5 ) == NULL );
\r
35 TESTCASE( wmemchr( wabcde, L'\0', 6 ) == &wabcde[5] );
\r
36 return TEST_RESULTS;
\r