Lines Matching refs:destMax
20 SECUREC_INLINE errno_t SecDoCat(char *strDest, size_t destMax, const char *strSrc)
25 SECUREC_CALC_STR_LEN(strDest, destMax, &destLen);
27 maxSrcLen = destMax - destLen;
32 if (strDest + destLen <= strSrc && destLen == destMax) {
39 if (srcLen + destLen >= destMax || strDest == strSrc) {
41 if (destLen == destMax) {
64 * destMax Size of the destination string buffer.
72 * EINVAL strDest is NULL and destMax != 0 and destMax <= SECUREC_STRING_MAX_LEN
74 * (strDest != NULL and strSrc is NULL and destMax != 0 and destMax <= SECUREC_STRING_MAX_LEN)
75 * ERANGE destMax is 0 and destMax > SECUREC_STRING_MAX_LEN
79 * If there is a runtime-constraint violation, strDest[0] will be set to the '\0' when strDest and destMax valid
81 errno_t strcat_s(char *strDest, size_t destMax, const char *strSrc)
83 if (destMax == 0 || destMax > SECUREC_STRING_MAX_LEN) {
95 return SecDoCat(strDest, destMax, strSrc);