GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
buffer_tosa(3) FreeBSD Library Functions Manual buffer_tosa(3)

buffer_tosa - initialize buffer for writing to stralloc

#include <libowfat/buffer.h>

int buffer_tosa(buffer* b,stralloc* sa);

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.

buffer_tosa returns 0 if everything was fine, -1 if it failed to allocate space for the initial data in the stralloc.

buffer_tosa(3), buffer_init(3), buffer(3)

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.