ne_buffer_destroy, ne_buffer_finish — destroy a buffer object
#include <ne_string.h>
void ne_buffer_destroy( | ne_buffer *buf) ; |
char *ne_buffer_finish( | ne_buffer *buf) ; |
ne_buffer_destroy
frees all memory
associated with the buffer. ne_buffer_finish
frees the buffer structure, but not the actual string stored in the
buffer, which is returned and must be free
()d by
the caller.
Any use of the buffer object after calling either of these functions gives undefined behaviour.