Lines Matching refs:strDest
19 #define SECUREC_STRNCPY_PARAM_OK(strDest, destMax, strSrc, count) \ argument
20 …(((destMax) > 0 && (destMax) <= SECUREC_STRING_MAX_LEN && (strDest) != NULL && (strSrc) != NULL &&…
23 #define SECUREC_STRNCPY_PARAM_OK(strDest, destMax, strSrc, count) \ argument
24 …(((destMax) > 0 && (destMax) <= SECUREC_STRING_MAX_LEN && (strDest) != NULL && (strSrc) != NULL &&…
31 SECUREC_INLINE errno_t CheckSrcCountRange(char *strDest, size_t destMax, const char *strSrc, size_t… in CheckSrcCountRange() argument
44 strDest[0] = '\0'; in CheckSrcCountRange()
54 errno_t strncpy_error(char *strDest, size_t destMax, const char *strSrc, size_t count) in strncpy_error() argument
60 if (strDest == NULL || strSrc == NULL) { in strncpy_error()
62 if (strDest != NULL) { in strncpy_error()
63 strDest[0] = '\0'; in strncpy_error()
69 strDest[0] = '\0'; /* Clear dest string */ in strncpy_error()
74 strDest[0] = '\0'; in strncpy_error()
77 return CheckSrcCountRange(strDest, destMax, strSrc, count); in strncpy_error()
104 errno_t strncpy_s(char *strDest, size_t destMax, const char *strSrc, size_t count) in strncpy_s() argument
106 if (SECUREC_STRNCPY_PARAM_OK(strDest, destMax, strSrc, count)) { in strncpy_s()
119 strDest[0] = '\0'; in strncpy_s()
124 if (SECUREC_STRING_NO_OVERLAP(strDest, strSrc, minCpLen) || strDest == strSrc) { in strncpy_s()
126 … SECUREC_MEMCPY_WARP_OPT(strDest, strSrc, minCpLen); /* Copy string without terminator */ in strncpy_s()
127 strDest[minCpLen] = '\0'; in strncpy_s()
130 strDest[0] = '\0'; in strncpy_s()
135 return strncpy_error(strDest, destMax, strSrc, count); in strncpy_s()