1 /* wcscat( 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 * wcscat( wchar_t * _PDCLIB_restrict s1,
\r
12 const wchar_t * _PDCLIB_restrict s2 )
\r
19 while ( (*s1++ = *s2++) );
\r
26 #include <_PDCLIB_test.h>
\r
30 wchar_t s[] = L"xx\0xxxxxx";
\r
31 TESTCASE( wcscat( s, wabcde ) == s );
\r
32 TESTCASE( s[2] == L'a' );
\r
33 TESTCASE( s[6] == L'e' );
\r
34 TESTCASE( s[7] == L'\0' );
\r
35 TESTCASE( s[8] == L'x' );
\r
37 TESTCASE( wcscat( s, wabcdx ) == s );
\r
38 TESTCASE( s[4] == L'x' );
\r
39 TESTCASE( s[5] == L'\0' );
\r
40 TESTCASE( wcscat( s, L"\0" ) == s );
\r
41 TESTCASE( s[5] == L'\0' );
\r
42 TESTCASE( s[6] == L'e' );
\r
43 return TEST_RESULTS;
\r