ec_asprintf

March 26, 2020 Contributors

Name

ec_asprintf — Momentum asprintf function

Synopsis

#include "misc/ec_string.h"

| int **ec_asprintf** ( | strp, |   |
|   | fmt, |   |
|   | ); |   |

char ** <var class="pdparam">strp</var>;
const char * <var class="pdparam">fmt</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 asprintf function.

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

Parameters

strp

the newly allocated string

fmt

the format string

Return Values

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