Lines Matching refs:strSrc
17 SECUREC_INLINE errno_t SecDoCpyLimitW(wchar_t *strDest, size_t destMax, const wchar_t *strSrc, size_t count)
21 SECUREC_CALC_WSTR_LEN(strSrc, count, &srcStrLen);
23 SECUREC_CALC_WSTR_LEN(strSrc, destMax, &srcStrLen);
30 if (strDest == strSrc) {
33 if (SECUREC_STRING_NO_OVERLAP(strDest, strSrc, srcStrLen)) {
35 SECUREC_MEMCPY_WARP_OPT(strDest, strSrc, srcStrLen * sizeof(wchar_t));
49 * from the array pointed to by strSrc to the array pointed to by strDest
54 * strSrc Source string.
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
75 errno_t wcsncpy_s(wchar_t *strDest, size_t destMax, const wchar_t *strSrc, size_t count)
81 if (strDest == NULL || strSrc == NULL) {
92 return SecDoCpyLimitW(strDest, destMax, strSrc, destMax - 1);
105 return SecDoCpyLimitW(strDest, destMax, strSrc, count);