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.
- str
-
An ec_string type.
- iobuf
-
The character array.
- iolen
-
The length of iobuf.
On success this function returns the size of the buffer written; on failure it returns -1
.
It is legal to call this function in any thread.
See Also
Was this page helpful?