Dear All,
I am new to unicode developement in C++. Could anyone give me an idea
whether the following (1), (2) and (3) are equivalent and correct in
semantics:
wchar_t src[] = L'ABCDE';
wchar_t tgt[100];
wcscpy(tgt, src); //(1)
memcpy(tgt, src, wcslen(src)*sizeof(wchar_t)+sizeof(L'\0')); //(2)
memcpy(tgt, src, (wcslen(src)+1)*sizeof(wchar_t)); //(3)
Thanks in advance!
Amon