chsvlib
chsv helper source code

◆ ucpsCpy()

ucp_t* Chusov::String::ucpsCpy ( ucp_t *restrict  pDest,
const ucp_t *restrict  pszSrc 
)
noexcept

Performs a copying of a zero-terminated string of Unicode code points from a source buffer to a destination one. Behaves identically to the standard strcpy function but implemented for the type ucp_t.

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 ucpsCpy_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
ucpsCpy;
ucpsCpy_s;
strCpy_s;
wcsCpy_s.