"Fossies" - the Fresh Open Source Software Archive

Member "neon-0.31.2/doc/man/ne_buffer_clear.3" (20 Jun 2020, 2330 Bytes) of package /linux/www/neon-0.31.2.tar.gz:


Caution: As a special service "Fossies" has tried to format the requested manual source page into HTML format but links to other man pages may be missing or even erroneous. Alternatively you can here view or download the uninterpreted manual source code. A member file download can also be achieved by clicking within a package contents listing on the according byte size field. See also the latest Fossies "Diffs" side-by-side code changes report for "ne_buffer_clear.3": 0.31.1_vs_0.31.2.

NE_BUFFER_CLEAR

NAME
SYNOPSIS
DESCRIPTION
AUTHOR
COPYRIGHT

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