Skip to main content

Name

ec_vprintf — vprintf-like function that takes an output parameter and a write function

Synopsis

#include "util.h"

| int **ec_vprintf** ( | out, |   | |   | writefunc, |   | |   | format, |   | |   | ap); |   |

void * <var class="pdparam">out</var>; ssize_t(*)() <var class="pdparam">writefunc</var>; const char * <var class="pdparam">format</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.

vprintf-like function that takes an output parameter and a write function.

Parameters

out

output object, passed as the first argument to writefunc

writefunc

function used to write to the output object

format

printf-style format string

ap

variadic argument pointer

Return Values

returns number of characters it attempted to write or -1 on error.

Was this page helpful?