Linux repositories inspector

ne_buffer_clear(3)

neon 0.30.2
30 September 2016
Aliases: ne_buffer_altered(3), ne_buffer_altered(3), ne_buffer_altered(3), ne_buffer_altered(3), ne_buffer_altered(3), ne_buffer_grow(3), ne_buffer_grow(3), ne_buffer_grow(3), ne_buffer_grow(3), ne_buffer_grow(3)

libneon27-dev

Header and static library files for libneon27

libneon27-gnutls-dev

Header and static library files for libneon27 (GnuTLS enabled)

neon-devel

Development libraries and C header files for the neon library

neon

HTTP and WebDAV client library with a C interface

libneon-devel

An HTTP and WebDAV Client Library

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 <>
Author.

⇧ Top