Name
ec_vsnprintf — Momentum vsnprintf function
Synopsis
#include "misc/ec_string.h"
| int **ec_vsnprintf** (
| str, | |
| | size, | |
| | fmt, | |
| | ap)
; | |
char * <var class="pdparam">str</var>
;
size_t <var class="pdparam">size</var>
;
const char * <var class="pdparam">fmt</var>
;
va_list <var class="pdparam">ap</var>
;
Description
Note
This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.
Momentum vsnprintf function.
Private version of vsnprintf() with consistent format string support and return value.
- str
-
the string to be written to
- size
-
the size of str (including the terminating NUL)
- fmt
-
the format string
- ap
-
list of arguments
Returns the number of characters it tried to write. If this value is >= size, truncation ocurred. Note that str is always NUL-terminated as long as size is > 0.