ne_buffer_grow (3) - Linux Manuals
ne_buffer_grow: clear, grow, or mark as altered a string buffer
ne_buffer_clear, ne_buffer_grow, ne_buffer_altered - clear, grow, or mark as altered a string buffer
*buf, size_t size);
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, ne_buffer_zappend or ne_buffer_concat.
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.
Joe Orton <neon [at] lists.manyfish.co.uk>