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


Manual Reference Pages  -  LIBOWFAT_BUFFER_GETLINE (3)

NAME

buffer_getline - read line from buffer

CONTENTS

Syntax
Description

SYNTAX

#include <buffer.h>

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

DESCRIPTION

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.

RETURN VALUE

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

SEE ALSO

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


BUFFER_GETLINE (3) -->

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