Lines Matching defs:destMax
17 SECUREC_INLINE errno_t SecDoCpyLimitW(wchar_t *strDest, size_t destMax, const wchar_t *strSrc, size_t count)
20 if (count < destMax) {
23 SECUREC_CALC_WSTR_LEN(strSrc, destMax, &srcStrLen);
25 if (srcStrLen == destMax) {
53 * destMax The size of the destination string, in characters.
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
64 * and destMax <= SECUREC_WCHAR_STRING_MAX_LEN
65 * ERANGE destMax > SECUREC_WCHAR_STRING_MAX_LEN or destMax is 0
67 * (destMax <= length of strSrc and destMax <= count and strDest != strSrc
68 * and strDest != NULL and strSrc != NULL and destMax != 0 and
69 * destMax <= SECUREC_WCHAR_STRING_MAX_LEN and not overlap)
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)
77 if (destMax == 0 || destMax > SECUREC_WCHAR_STRING_MAX_LEN) {
92 return SecDoCpyLimitW(strDest, destMax, strSrc, destMax - 1);
105 return SecDoCpyLimitW(strDest, destMax, strSrc, count);