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