Lines Matching refs:strDest
20 SECUREC_INLINE errno_t SecDoCatLimit(char *strDest, size_t destMax, const char *strSrc, size_t coun… in SecDoCatLimit() argument
24 SECUREC_CALC_STR_LEN(strDest, destMax, &destLen); in SecDoCatLimit()
31 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoCatLimit()
32 strDest[0] = '\0'; in SecDoCatLimit()
33 if (strDest + destLen <= strSrc && destLen == destMax) { in SecDoCatLimit()
40 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoCatLimit()
41 strDest[0] = '\0'; in SecDoCatLimit()
49 SECUREC_MEMCPY_WARP_OPT(strDest + destLen, strSrc, srcLen); /* No terminator */ in SecDoCatLimit()
50 *(strDest + destLen + srcLen) = '\0'; in SecDoCatLimit()
87 errno_t strncat_s(char *strDest, size_t destMax, const char *strSrc, size_t count) in strncat_s() argument
94 if (strDest == NULL || strSrc == NULL) { in strncat_s()
96 if (strDest != NULL) { in strncat_s()
97 strDest[0] = '\0'; in strncat_s()
106 return SecDoCatLimit(strDest, destMax, strSrc, destMax); in strncat_s()
109 strDest[0] = '\0'; in strncat_s()
113 return SecDoCatLimit(strDest, destMax, strSrc, count); in strncat_s()