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