Lines Matching refs:strDest
24 * to by strDest and appends a terminating null.
27 * strDest Storage location for the output.
28 * destMax The size of the strDest for output.
35 * strDest is updated
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);
55 retVal = SecVsnprintfImpl(strDest, count + 1, format, argList);
58 return -1; /* To skip error handler, return strlen(strDest) or -1 */
61 retVal = SecVsnprintfImpl(strDest, destMax, format, argList);
70 strDest[0] = '\0'; /* Empty the dest strDest */
93 * to by strDest and appends a terminating null.
96 * strDest Storage location for the output.
97 * destMax The size of the strDest for output.
103 * strDest is updated
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) */
127 strDest[0] = '\0'; /* Empty the dest strDest */