wcscat - C wchar.h

C examples for wchar.h:wcscat

Type

function

From


<cwchar>
<wchar.h>

Description

Concatenate wide strings

Prototype

wchar_t* wcscat (wchar_t* destination, const wchar_t* source);

Parameters

Parameter Description
destination Pointer to the destination array
source C wide string to be appended

Return Value

destination is returned.

Demo Code


#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;
}

Related Tutorials