Skip to main content

Name

ec_vasprintf — Momentum vasprintf function

Synopsis

#include "misc/ec_string.h"

| int **ec_vasprintf** ( | strp, |   | |   | fmt, |   | |   | ap); |   |

char ** <var class="pdparam">strp</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.

vasprintf function.

Private version of vasprintf() with consistent format string support and return value.

Parameters

strp

the newly allocated string

fmt

the format string

ap

list of arguments

Return Values

Returns the length of the resulting string or -1 if the allocation fails.

Was this page helpful?