Skip to main content


stringwrite_strings — write 1 or more NUL-terminated C-strings to the provided string


#include "misc/ec_string.h"

| INLINE ssize_t **stringwrite_strings** ( | str, |   | |   | nstr, |   | |   | ); |   |

string * <var class="pdparam">str</var>; int <var class="pdparam">nstr</var>; ...;



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.

write 1 or more NUL-terminated C-strings to the provided string.

This is tuned to avoid strlen; STR is updated as the input strings are walked, and the function falls back to stringwrite2 in the case where it would overflow the existing string buffer memory.



the string to append to


the number of C-strings that follow

The rest of the parameters are NSTR NUL-terminated C-strings. A given C-string may be NUL; it will simply be skipped.

Was this page helpful?