Lines Matching refs:destMax
20 SECUREC_INLINE errno_t SecDoCatLimitW(wchar_t *strDest, size_t destMax, const wchar_t *strSrc, size_t count)
25 SECUREC_CALC_WSTR_LEN(strDest, destMax, &destLen);
30 if (strDest + destLen <= strSrc && destLen == destMax) {
37 if (srcLen + destLen >= destMax || strDest == strSrc) {
39 if (destLen == destMax) {
60 * given as destMax) and still leave room for a null terminator, then those
67 * destMax Size of the destination buffer.
76 * EINVAL strDest is NULL and destMax != 0 and destMax <= SECUREC_WCHAR_STRING_MAX_LEN
78 * (strDest != NULL and strSrc is NULL and destMax != 0 and
79 * destMax <= SECUREC_WCHAR_STRING_MAX_LEN)
80 * ERANGE destMax > SECUREC_WCHAR_STRING_MAX_LEN or destMax is 0
84 * If there is a runtime-constraint violation, strDest[0] will be set to the '\0' when strDest and destMax valid
86 errno_t wcsncat_s(wchar_t *strDest, size_t destMax, const wchar_t *strSrc, size_t count)
88 if (destMax == 0 || destMax > SECUREC_WCHAR_STRING_MAX_LEN) {
104 return SecDoCatLimitW(strDest, destMax, strSrc, destMax);
111 return SecDoCatLimitW(strDest, destMax, strSrc, count);