Lines Matching refs:strDest
17 SECUREC_INLINE errno_t SecDoCpyLimitW(wchar_t *strDest, size_t destMax, const wchar_t *strSrc, size_t count)
26 strDest[0] = L'\0';
30 if (strDest == strSrc) {
33 if (SECUREC_STRING_NO_OVERLAP(strDest, strSrc, srcStrLen)) {
35 SECUREC_MEMCPY_WARP_OPT(strDest, strSrc, srcStrLen * sizeof(wchar_t));
36 *(strDest + srcStrLen) = L'\0';
39 strDest[0] = L'\0';
49 * from the array pointed to by strSrc to the array pointed to by strDest
52 * strDest Destination string.
58 * strDest is updated
62 * EINVAL strDest is NULL and destMax != 0 and destMax <= SECUREC_WCHAR_STRING_MAX_LEN
63 * EINVAL_AND_RESET strDest != NULL and strSrc is NULL and destMax != 0
67 * (destMax <= length of strSrc and destMax <= count and strDest != strSrc
68 * and strDest != NULL and strSrc != NULL and destMax != 0 and
73 * If there is a runtime-constraint violation, strDest[0] will be set to the '\0' when strDest and destMax valid
75 errno_t wcsncpy_s(wchar_t *strDest, size_t destMax, const wchar_t *strSrc, size_t count)
81 if (strDest == NULL || strSrc == NULL) {
83 if (strDest != NULL) {
84 strDest[0] = L'\0';
92 return SecDoCpyLimitW(strDest, destMax, strSrc, destMax - 1);
95 strDest[0] = L'\0'; /* Clear dest string */
101 strDest[0] = L'\0';
105 return SecDoCpyLimitW(strDest, destMax, strSrc, count);