neon API reference NE_BUFFER_CLEAR(3)
NAME
ne_buffer_clear, ne_buffer_grow, ne_buffer_altered - general
purpose of group of functionsSYNOPSIS
#include
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 thanusing 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. AUTHOR Joe OrtonAuthor. COPYRIGHT ATTRIBUTES
See attributes(5) for descriptions of the following attributes:_______________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE|
|____________________|__________________|_
| Availability | library/neon ||____________________|__________________|_
| Interface Stability| Volatile ||____________________|_________________|
NOTES Source for Neon is available on http://opensolaris.org. neon 0.29.0 Last change: 13 September 2009 1