Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

wcscat - Concatenate two wide character strings

&pagelevel(4)&pagelevel

Definition   

#include <wchar.h>

wchar_t *wcscat(wchar_t *ws1, const wchar_t *ws2);

wcscat appends a copy of the wide character string ws2 to the end of the wide character string ws1 and returns a pointer to ws1.

The null wide character (\0) at the end of the wide character string ws1 is overwritten by the the first character of the wide character string ws2.
wcscat terminates the wide character string with a null byte (\0).

Return val.

Pointer to the resulting wide character string ws1.

Notes

This version of the C runtime system only supports one-byte characters as wide character codes.

Wide character strings terminated with the null wide character (\0) are expected as arguments.
wcscat does not verify whether ws1 has enough space to accommodate the result!

The behavior is undefined if memory areas overlap.

See also

strcat, wcsncat