Skip to main content

Name

ec_snprintf — Momentum snprintf function

Synopsis

#include "misc/ec_string.h"

| int **ec_snprintf** ( | str, |   | |   | size, |   | |   | fmt, |   | |   | ); |   |

char * <var class="pdparam">str</var>; size_t <var class="pdparam">size</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 snprintf function.

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

Parameters

str

the string to be written to

size

the size of str (including the terminating NUL)

fmt

the format string

Return Values

Returns the number of characters it tried to write. If this value is >= size, truncation ocurred. Note that str is always NUL-terminated as long as size is > 0.

Was this page helpful?