Lines Matching refs:destMax
20 SECUREC_INLINE errno_t SecDoCatLimit(char *strDest, size_t destMax, const char *strSrc, size_t count)
24 SECUREC_CALC_STR_LEN(strDest, destMax, &destLen);
33 if (strDest + destLen <= strSrc && destLen == destMax) {
40 if (srcLen + destLen >= destMax || strDest == strSrc) {
42 if (destLen == destMax) {
62 * as destMax) and still leave room for a null terminator, then those characters
69 * destMax Size of the destination buffer.
78 * EINVAL strDest is NULL and destMax != 0 and destMax <= SECUREC_STRING_MAX_LEN
80 * (strDest != NULL and strSrc is NULL and destMax != 0 and destMax <= SECUREC_STRING_MAX_LEN)
81 * ERANGE destMax is 0 and destMax > SECUREC_STRING_MAX_LEN
85 * If there is a runtime-constraint violation, strDest[0] will be set to the '\0' when strDest and destMax valid
87 errno_t strncat_s(char *strDest, size_t destMax, const char *strSrc, size_t count)
89 if (destMax == 0 || destMax > SECUREC_STRING_MAX_LEN) {
106 return SecDoCatLimit(strDest, destMax, strSrc, destMax);
113 return SecDoCatLimit(strDest, destMax, strSrc, count);