ne_buffer_clear - clear, grow, or mark as altered a string buffer
#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);
NE_BUFFER_CLEAR(3) neon API reference NE_BUFFER_CLEAR(3) NAME ne_buffer_clear, ne_buffer_grow, ne_buffer_altered - clear, grow, or mark as altered a string buffer 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_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 Orton <neon@lists.manyfish.co.uk> Author. COPYRIGHT ATTRIBUTES See attributes(7) for descriptions of the following attributes: +---------------+------------------+ |ATTRIBUTE TYPE | ATTRIBUTE VALUE | +---------------+------------------+ |Availability | library/neon | +---------------+------------------+ |Stability | Volatile | +---------------+------------------+ NOTES Source code for open source software components in Oracle Solaris can be found at https://www.oracle.com/downloads/opensource/solaris-source- code-downloads.html. This software was built from source available at https://github.com/oracle/solaris-userland. The original community source was downloaded from http://www.webdav.org/neon/neon-0.30.1.tar.gz. Further information about this software can be found on the open source community website at http://www.webdav.org/neon/. neon 0.30.1 23 September 2014 NE_BUFFER_CLEAR(3)