C examples for wchar.h:wcscat
function
<cwchar> <wchar.h>
Concatenate wide strings
wchar_t* wcscat (wchar_t* destination, const wchar_t* source);
Parameter | Description |
---|---|
destination | Pointer to the destination array |
source | C wide string to be appended |
destination is returned.
#include <wchar.h> int main ()/*from w w w. j av a2s . com*/ { wchar_t wcs[80]; wcscpy (wcs,L"these "); wcscat (wcs,L"wide strings "); wcscat (wcs,L"are "); wcscat (wcs,L"for testing."); wprintf (L"%ls\n",wcs); return 0; }