stringwrite2

March 26, 2020 Contributors

Name

stringwrite2 — Convert a character array to an ec_string

Synopsis

#include "misc/ec_string.h"

| ssize_t **stringwrite2** ( | str, |   |
|   | iobuf, |   |
|   | iolen); |   |

string * <var class="pdparam">str</var>;
const char * <var class="pdparam">iobuf</var>;
size_t <var class="pdparam">iolen</var>;

Description

Convert a character array to an ec_string.

Parameters

str

An ec_string type.

iobuf

The character array.

iolen

The length of iobuf.

Return Values

On success this function returns the size of the buffer written; on failure it returns -1.

Threading

It is legal to call this function in any thread.

See Also

“string”