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_getline(3) FreeBSD Library Functions Manual buffer_getline(3)

buffer_getline - read line from buffer

#include <libowfat/buffer.h>

ssize_t buffer_getline(buffer* b,char* x,size_t len);

buffer_getline copies data from b to x[0], x[1], ..., x[len-1] until len bytes have been copied or a new-line character ('\n') is encountered. That character is also copied.

Note that line is not 0-terminated to make reading lines with 0-bytes possible through this interface.

Number of bytes read (without '\n'), -1 on error (setting errno).

buffer_init(3), buffer_feed(3), buffer_peek(3), buffer_seek(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.