chsvlib
chsv helper source code

◆ tcsCpy()

CHAR_TYPE* Chusov::String::tcsCpy ( CHAR_TYPE *restrict  pszDest,
const CHAR_TYPE *restrict  pszSrc 
)
noexcept

Resolves to strCpy, to wcsCpy or to ucpsCpy depending on the template parameter.

Template Parameters
CHAR_TYPEis a type of a string character.
Parameters
[out]pszDestis 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 tcsCpy_s function to validate this and some other assumptions.
[in]pszSrcis a zero terminated string to be copied.
Returns
The function returns the value of pDest.