wchar_t - C wchar.h

C examples for wchar.h:wchar_t

Type

data type

From


<cwchar>
<wchar.h>

Description

Wide character

Demo Code


#include <wchar.h>

int main ()//from  ww  w .  j  av a 2s  . c o m
{
  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