"Fossies" - the Fresh Open Source Software Archive

Member "neon-0.31.2/doc/man/ne_buffer.3" (20 Jun 2020, 2368 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.3": 0.31.1_vs_0.31.2.

NE_BUFFER

NAME
SYNOPSIS
DESCRIPTION
AUTHOR
COPYRIGHT

NAME

ne_buffer − string buffer handling

SYNOPSIS

#include <ne_string.h>

typedef struct {
char *data;
size_t used;
size_t length;
} ne_buffer;

DESCRIPTION

The ne_buffer type represents an expandable memory buffer for holding NUL−terminated strings. The data field points to the beginnning of the string, the length of which is given by the used field. The current size of memory allocated is given by the length field. It is not recommended that the fields of a buffer are manipulated directly. The data pointer may change when the buffer is modified.

A buffer is created using ne_buffer_create or ne_buffer_ncreate, and destroyed using ne_buffer_destroy or ne_buffer_finish. The functions ne_buffer_append, ne_buffer_zappend and ne_buffer_concat are used to append data to a buffer.

If the string referenced by the data pointer is modified directly (rather than using one of the functions listed above), ne_buffer_altered must be called.

AUTHOR

Joe Orton <neon@lists.manyfish.co.uk>

Author.

COPYRIGHT