NE_BUFFER_CLEAR(3) neon API reference NE_BUFFER_CLEAR(3)NAME
ne_buffer_clear, ne_buffer_grow, ne_buffer_altered - general purpose of
group of functions
SYNOPSIS
#include <ne_string.h>
void ne_buffer_clear (ne_buffer *buf);
void ne_buffer_altered (ne_buffer *buf);
void ne_buffer_grow (ne_buffer *buf, size_t size);
DESCRIPTION
The ne_buffer_clear function sets the string stored in buf to be the
empty string ("").
The ne_buffer_altered function must be used after the string stored in
the buffer buf is modified by directly rather than using ne_buffer_ap‐
pend(3), ne_buffer_zappend(3) or ne_buffer_concat(3).
The ne_buffer_grow function ensures that at least size bytes are allo‐
cated for the string; this can be used if a large amount of data is go‐
ing to be appended to the buffer and may result in more efficient memo‐
ry allocation.
AUTHOR
Joe Orton <neon@webdav.org>.
neon 0.25.5 20 January 2006 NE_BUFFER_CLEAR(3)