=3 .ne \\$3 -->


Solaris  - NE_BUFFER_CLEAR (3)

NAME

ne_buffer_clear, ne_buffer_grow, ne_buffer_altered - general purpose of group of functions

CONTENTS

Author
Attributes
Notes

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);

advertisement

advertisement


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(3), ne_buffer_zappend(3) or ne_buffer_concat(3).

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 <[email protected].org>.

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
AvailabilitySUNWneon
Interface StabilityVolatile

NOTES

Source for Neon is available on http://opensolaris.org.
Jump to page    or go to Top of page |  Section 3 |  OpenSolaris Man Main Index.


neon 0.25.5 NE_BUFFER_CLEAR (3) 20 January 2006
Generated by OpenSolaris Forum from /usr/share/man/man3/ne_buffer_clear.3 using man macros with tbl support.