chsvlib
chsv helper source code

◆ tcsCpy_s()

errno_t Chusov::String::tcsCpy_s ( CHAR_TYPE *restrict  pszDest,
rsize_t  cchDest,
const CHAR_TYPE *restrict  pszSrc 
)
noexcept

Resolves to strCpy_s, to wcsCpy_s or to ucpsCpy_s depending on the template parameter.

Template Parameters
CHAR_TYPEis a type of a string character.
Parameters
[out]pszDestis a pointer to the destination buffer where the source string is to be copied to. A size of the buffer, in characters, is specified by the value of cchDest.
[in]cchDestis a size of the destination buffer in characters.
[in]pszSrcis a pointer to a zero-terminated string to be copied into the buffer pointed by the value of pDest.
Returns
On success the function returns 0. If error occurs the function returns the corresponding errno code.