Resolves to strCpy_s, to wcsCpy_s or to ucpsCpy_s depending on the template parameter.
- Template Parameters
-
CHAR_TYPE | is a type of a string character. |
- Parameters
-
[out] | pszDest | is 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] | cchDest | is a size of the destination buffer in characters. |
[in] | pszSrc | is 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.