chsvlib
chsv helper source code

◆ strCpy()

char* Chusov::String::strCpy ( char *restrict  pDest,
const char *restrict  pszSrc 
)
noexcept

Performs a copying of a zero-terminated string from a source buffer to a destination one. Implements the behaviour of the standard strcpy function of the string.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 strCpy_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.
See also
strCpy_s;
wcsCpy.