Str.vasprintf

An implementation of the GNU vasprintf() function which supports positional parameters, as specified in the Single Unix Specification. This function is similar to g_vsprintf(), except that it allocates a string to hold the output, instead of putting the output in a buffer you allocate in advance. Since 2.4

class Str
static
int
vasprintf
(
out string string
,
string format
,
void* args
)

Parameters

string string

the return location for the newly-allocated string.

format string

a standard printf() format string, but notice string precision pitfalls.

args void*

the list of arguments to insert in the output.

Return Value

Type: int

the number of bytes printed.

Meta