ne_buffer_append (3) - Linux Manuals
ne_buffer_append: append data to a string buffer
NAME
ne_buffer_append, ne_buffer_zappend, ne_buffer_concat - append data to a string buffer
SYNOPSIS
#include <ne_string.h>
-
void ne_buffer_append(ne_buffer
* buf, const char* string, size_tlen); - void ne_buffer_zappend(ne_buffer
* buf, const char* string);- void ne_buffer_concat(ne_buffer
* buf, const char* str, ...); - void ne_buffer_zappend(ne_buffer
DESCRIPTION
The ne_buffer_concat function takes a variable-length argument list following str; each argument must be a char * pointer to a NUL-terminated string. A NULL pointer must be given as the last argument to mark the end of the list. The strings (including str) are appended to the buffer in the order given. None of the strings passed to ne_buffer_concat are modified.
EXAMPLES
The following code will output "Hello, world. And goodbye.".
-
ne_buffer *buf = ne_buffer_create(); ne_buffer_zappend(buf, "Hello"); ne_buffer_concat(buf, ", world. ", "And ", "goodbye.", NULL); puts(buf->data); ne_buffer_destroy(buf);
AUTHOR
Joe Orton <neon [at] lists.manyfish.co.uk>
- Author.
COPYRIGHT