chsvlib
chsv helper source code

◆ wcsCpy()

wchar_t* Chusov::String::wcsCpy ( wchar_t *restrict  pDest,
const wchar_t *restrict  pszSrc 
)
noexcept

Performs a copying of a zero-terminated wide string from a source buffer to a destination one. Implements the behaviour of the standard wcscpy function of the wchar.h header.

Parameters
[out]pDestis a pointer to a buffer where the string, referenced by the source pointer, is copied to. A size of the buffer is supposed to be enough to hold the entire copy of the string including the terminating zero. Use the wcsCpy_s function to validate this and some other assumptions.
[in]pszSrcis a zero terminated wide string to be copied.
Returns
The function returns the value of pDest.
See also
wcsCpy_s;
strCpy.