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

#include <xtend/fast-file.h>
-lxtend

int     ffread_line_malloc(ffile_t *stream, char **buff, size_t *buff_size,
size_t *len)

stream:     FILE stream from which field is read
buff:       Character buffer into which field is copied
buff_size:  Size of the array passed to buff
len:        Pointer to a variable which will receive the field length

ffread_line_malloc() reads a single line of text (up to the next newline or EOF) from stream, allocating and/or extending the provided buffer if needed.

Delimiter ending the read: either newline or EOF

ffile_t *stream;
char    *buff;
size_t  buff_len, len;
while ( ffile_read_line_malloc(stream, buff, &buff_len, &len) != EOF )
{
}

dsv_read_field_malloc(3), ffgetc(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.