Lines Matching refs:destMax
21 * except for the parameter destMax/count and the explicit runtime-constraints violation
28 * destMax The size of the strDest for output.
40 * return -1 if count < destMax and the output string has been truncated
42 * If there is a runtime-constraint violation, strDest[0] will be set to the '\0' when strDest and destMax valid
44 int vsnprintf_s(char *strDest, size_t destMax, size_t count, const char *format, va_list argList)
48 if (SECUREC_VSNPRINTF_PARAM_ERROR(format, strDest, destMax, count, SECUREC_STRING_MAX_LEN)) {
49 SECUREC_VSPRINTF_CLEAR_DEST(strDest, destMax, SECUREC_STRING_MAX_LEN);
54 if (destMax > count) {
61 retVal = SecVsnprintfImpl(strDest, destMax, format, argList);
90 * except for the parameter destMax/count and the explicit runtime-constraints violation
97 * destMax The size of the strDest for output.
108 * return destMax-1 if output string has been truncated
110 * If there is a runtime-constraint violation, strDest[0] will be set to the '\0' when strDest and destMax valid
112 int vsnprintf_truncated_s(char *strDest, size_t destMax, const char *format, va_list argList)
116 if (SECUREC_VSPRINTF_PARAM_ERROR(format, strDest, destMax, SECUREC_STRING_MAX_LEN)) {
117 SECUREC_VSPRINTF_CLEAR_DEST(strDest, destMax, SECUREC_STRING_MAX_LEN);
122 retVal = SecVsnprintfImpl(strDest, destMax, format, argList);
125 return (int)(destMax - 1); /* To skip error handler, return strlen(strDest) */