// Use wcscpy() — to copy wide-character strings
#include <stdio.h>
#include <wchar.h>
#define SIZE 30
int main(void)
{
wchar_t s1[SIZE] = L"test";
wchar_t s2[SIZE] = L"c c++ programming";
wcscpy(s1, s2);
printf("s1 = %ls\n", s1);
printf("s2 = %ls\n", s2);
return 0;
}
/*
run:
s1 = c c++ programming
s2 = c c++ programming
*/