Lines Matching refs:strDest
17 SECUREC_INLINE errno_t SecDoCpyW(wchar_t *strDest, size_t destMax, const wchar_t *strSrc)
23 strDest[0] = L'\0';
27 if (strDest == strSrc) {
31 if (SECUREC_STRING_NO_OVERLAP(strDest, strSrc, srcStrLen)) {
33 SECUREC_MEMCPY_WARP_OPT(strDest, strSrc, (srcStrLen + 1) * sizeof(wchar_t));
36 strDest[0] = L'\0';
45 * (including the terminating null wide character) into the array pointed to by strDest
48 * strDest Destination string buffer
53 * strDest is updated.
57 * EINVAL strDest is NULL and destMax != 0 and destMax <= SECUREC_WCHAR_STRING_MAX_LEN
58 * EINVAL_AND_RESET strDest != NULL and strSrc is NULL and destMax != 0
61 * ERANGE_AND_RESET destMax <= length of strSrc and strDest != strSrc
62 * and strDest != NULL and strSrc != NULL and destMax != 0
66 * and strDest != NULL and strSrc !=NULL and strDest != strSrc
68 * If there is a runtime-constraint violation, strDest[0] will be set to the '\0' when strDest and destMax valid
70 errno_t wcscpy_s(wchar_t *strDest, size_t destMax, const wchar_t *strSrc)
76 if (strDest == NULL || strSrc == NULL) {
78 if (strDest != NULL) {
79 strDest[0] = L'\0';
84 return SecDoCpyW(strDest, destMax, strSrc);