1 /* wmemmove( wchar_t *, const wchar_t *, 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 * wmemmove( wchar_t * dest, const wchar_t * src, size_t n )
36 #include "_PDCLIB_test.h"
40 wchar_t s[] = L"xxxxabcde";
41 TESTCASE( wmemmove( s, s + 4, 5 ) == s );
42 TESTCASE( s[0] == L'a' );
43 TESTCASE( s[4] == L'e' );
44 TESTCASE( s[5] == L'b' );
45 TESTCASE( wmemmove( s + 4, s, 5 ) == s + 4 );
46 TESTCASE( s[4] == L'a' );