debian man page for buffer_tosa

Query: buffer_tosa

OS: debian

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

buffer_tosa(3)						     Library Functions Manual						    buffer_tosa(3)

NAME
buffer_tosa - initialize buffer for writing to stralloc
SYNTAX
#include <buffer.h> int buffer_tosa(buffer* b,stralloc* sa);
DESCRIPTION
buffer_tosa makes a virtual write buffer from a stralloc. The buffer writing functions will append data to the stralloc until the stralloc fails to allocate more memory. You still need to flush the buffer. Note that in the end the stralloc will have allocated more memory than is needed to hold the actual contents. The waste is 1024 bytes.
RETURN VALUE
buffer_tosa returns 0 if everything was fine, -1 if it failed to allocate space for the initial data in the stralloc.
SEE ALSO
buffer_tosa(3), buffer_init(3), buffer(3) buffer_tosa(3)
Related Man Pages
tiffwritebuffersetup(3t) - redhat
buffer_get(3) - debian
buffer_get_token_sa(3) - debian
buffer_get_token_sa_pred(3) - debian
tiffreadbuffersetup(3tiff) - sunos
Similar Topics in the Unix Linux Community
awk or sed - Convert 2 lines to 1 line
How can I do this in VI editor?
One instance of comparing grep and awk
A (ksh) Library For and From UNIX.com
My first PERL incarnation... Audio Oscillograph