Hello to everyone.
I have a simple, little question.
I am writing the following code:
wcsncpy_s function put correctly "ciao" string in wValore, then insert the NULL character, and then fill my string wValore with "fe" characters. Does anyone know why it fill the rest of the string with "fe" characters? I can see it with memory window inside VC2008Code:wchar_t wValore[20] ; wchar_t Descriz[] = TEXT("ciao") ; wcsncpy_s(wValore, ARRAYSIZE(wValore), Descriz, _TRUNCATE) ;
Thank you




Reply With Quote