Lines Matching refs:strSrc
20 SECUREC_INLINE errno_t SecDoCat(char *strDest, size_t destMax, const char *strSrc)
26 /* Only optimize strSrc, do not apply this function to strDest */
28 SECUREC_CALC_STR_LEN_OPT(strSrc, maxSrcLen, &srcLen);
30 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) {
32 if (strDest + destLen <= strSrc && destLen == destMax) {
39 if (srcLen + destLen >= destMax || strDest == strSrc) {
48 SECUREC_MEMCPY_WARP_OPT(strDest + destLen, strSrc, srcLen + 1); /* Single character length include \0 */
54 * The strcat_s function appends a copy of the string pointed to by strSrc (including the terminating null character)
56 * The initial character of strSrc overwrites the terminating null character of strDest.
65 * strSrc Null-terminated source string buffer.
74 * (strDest != NULL and strSrc is NULL and destMax != 0 and destMax <= SECUREC_STRING_MAX_LEN)
81 errno_t strcat_s(char *strDest, size_t destMax, const char *strSrc)
87 if (strDest == NULL || strSrc == NULL) {
95 return SecDoCat(strDest, destMax, strSrc);