ec_mt_asprintf — Memory-typed asprintf function
int **ec_mt_asprintf** ( | mt, | |
| | strp, | |
| | fmt, | |
); | |
Memory-typed asprintf function.
This is a version of asprintf() that takes a Momentum memory type as an argument. For a list of memory types see the section called “Memory Types”.
The memory type to use for allocations.
The newly allocated string.
The format string.
Returns the length of the resulting string or
-1 if the allocation fails.
It is legal to call this function in any thread.