Lines Matching defs:destMax
17 SECUREC_INLINE errno_t SecDoCpyW(wchar_t *strDest, size_t destMax, const wchar_t *strSrc)
20 SECUREC_CALC_WSTR_LEN(strSrc, destMax, &srcStrLen);
22 if (srcStrLen == destMax) {
49 * destMax Size of the destination string buffer.
57 * EINVAL strDest is NULL and destMax != 0 and destMax <= SECUREC_WCHAR_STRING_MAX_LEN
58 * EINVAL_AND_RESET strDest != NULL and strSrc is NULL and destMax != 0
59 * and destMax <= SECUREC_WCHAR_STRING_MAX_LEN
60 * ERANGE destMax > SECUREC_WCHAR_STRING_MAX_LEN or destMax is 0
61 * ERANGE_AND_RESET destMax <= length of strSrc and strDest != strSrc
62 * and strDest != NULL and strSrc != NULL and destMax != 0
63 * and destMax <= SECUREC_WCHAR_STRING_MAX_LEN and not overlap
64 * EOVERLAP_AND_RESET dest buffer and source buffer are overlapped and destMax != 0
65 * and destMax <= SECUREC_WCHAR_STRING_MAX_LEN
68 * If there is a runtime-constraint violation, strDest[0] will be set to the '\0' when strDest and destMax valid
70 errno_t wcscpy_s(wchar_t *strDest, size_t destMax, const wchar_t *strSrc)
72 if (destMax == 0 || destMax > SECUREC_WCHAR_STRING_MAX_LEN) {
84 return SecDoCpyW(strDest, destMax, strSrc);