Lines Matching refs:strSrc
20 SECUREC_INLINE errno_t SecDoCatLimit(char *strDest, size_t destMax, const char *strSrc, size_t count)
26 * The strSrc is no longer optimized. The reason is that when count is small,
29 SECUREC_CALC_STR_LEN(strSrc, count, &srcLen);
31 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) {
33 if (strDest + destLen <= strSrc && destLen == destMax) {
40 if (srcLen + destLen >= destMax || strDest == strSrc) {
49 SECUREC_MEMCPY_WARP_OPT(strDest + destLen, strSrc, srcLen); /* No terminator */
58 * from the array pointed to by strSrc to the end of the string pointed to by strDest
59 * The strncat_s function try to append the first D characters of strSrc to
60 * the end of strDest, where D is the lesser of count and the length of strSrc.
70 * strSrc Null-terminated source string.
80 * (strDest != NULL and strSrc is NULL and destMax != 0 and destMax <= SECUREC_STRING_MAX_LEN)
87 errno_t strncat_s(char *strDest, size_t destMax, const char *strSrc, size_t count)
94 if (strDest == NULL || strSrc == NULL) {
106 return SecDoCatLimit(strDest, destMax, strSrc, destMax);
113 return SecDoCatLimit(strDest, destMax, strSrc, count);