NE_BUFFER_CLEARSection: neon API reference (3)Updated: 5 July 2004 |
NE_BUFFER_CLEARSection: neon API reference (3)Updated: 5 July 2004 |
#include <ne_string.h>
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_append(3), ne_buffer_zappend(3) or ne_buffer_concat(3).
The ne_buffer_grow function ensures that at least size bytes are allocated for the string; this can be used if a large amount of data is going to be appended to the buffer and may result in more efficient memory allocation.