neon API reference NEBUFER(3)
NAME
nebuffer - string buffer handling
SYNOPSIS
#include
typedef struct {
char *data;
sizet used;
sizet length; } nebuffer;
DESCRIPTION
The nebuffer 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 nebuffercreate(3) or
nebufferncreate(3), and destroyed using
nebufferdestroy(3) or nebufferfinish(3). The functions
nebufferappend(3), nebufferzappend(3) and
nebufferconcat(3) 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), nebufferaltered must be called.
AUTHOR
Joe Orton .
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
neon 0.25.5 Last change: 20 January 2006 1
neon API reference NEBUFER(3)
ATRIBUTE TYPE ATRIBUTE VALUE
Availability SUNWneon
Interface Stability Volatile
NOTES
Source for Neon is available on http:/opensolaris.org.
neon 0.25.5 Last change: 20 January 2006 2
|