Lines Matching refs:strDest
23 #define SECUREC_STRNCPY_PARAM_OK(strDest, destMax, strSrc, count) \ argument
24 …(((destMax) > 0 && (destMax) <= SECUREC_STRING_MAX_LEN && (strDest) != NULL && (strSrc) != NULL &&…
27 #define SECUREC_STRNCPY_PARAM_OK(strDest, destMax, strSrc, count) \ argument
28 …(((destMax) > 0 && (destMax) <= SECUREC_STRING_MAX_LEN && (strDest) != NULL && (strSrc) != NULL &&…
35 SECUREC_INLINE errno_t CheckSrcCountRange(char *strDest, size_t destMax, const char *strSrc, size_t… in CheckSrcCountRange() argument
48 strDest[0] = '\0'; in CheckSrcCountRange()
58 errno_t strncpy_error(char *strDest, size_t destMax, const char *strSrc, size_t count) in strncpy_error() argument
64 if (strDest == NULL || strSrc == NULL) { in strncpy_error()
66 if (strDest != NULL) { in strncpy_error()
67 strDest[0] = '\0'; in strncpy_error()
73 strDest[0] = '\0'; /* Clear dest string */ in strncpy_error()
78 strDest[0] = '\0'; in strncpy_error()
81 return CheckSrcCountRange(strDest, destMax, strSrc, count); in strncpy_error()
108 errno_t strncpy_s(char *strDest, size_t destMax, const char *strSrc, size_t count) in strncpy_s() argument
110 if (SECUREC_STRNCPY_PARAM_OK(strDest, destMax, strSrc, count)) { in strncpy_s()
123 strDest[0] = '\0'; in strncpy_s()
128 if (SECUREC_STRING_NO_OVERLAP(strDest, strSrc, minCpLen) || strDest == strSrc) { in strncpy_s()
130 … SECUREC_MEMCPY_WARP_OPT(strDest, strSrc, minCpLen); /* Copy string without terminator */ in strncpy_s()
131 strDest[minCpLen] = '\0'; in strncpy_s()
134 strDest[0] = '\0'; in strncpy_s()
139 return strncpy_error(strDest, destMax, strSrc, count); in strncpy_s()