ec_mt_vasprintf
Last updated March 2020
Name
ec_mt_vasprintf — Memory-typed vasprintf function
Synopsis
#include "misc/ec_string.h"
| int **ec_mt_vasprintf** ( | mt, | |
| | strp, | |
| | fmt, | |
| | ap); | |
int <var class="pdparam">mt</var>;
char ** <var class="pdparam">strp</var>;
const char * <var class="pdparam">fmt</var>;
va_list <var class="pdparam">ap</var>;
Description
Memory-typed vasprintf function.
Version of vasprintf() that takes an Momentum memory type as an argument.
- mt
-
The memory type to use for allocations. For more information about memory types see Memory Types.
- strp
-
The newly allocated string.
- fmt
-
The format string.
- ap
-
The list of arguments.
This function returns the length of the resulting string or -1 if the allocation fails.
It is legal to call this function in any thread.
See Also
Was this page helpful?