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

#include <xtend/file.h>
-lxtend

size_t  xt_fgetline(FILE *fp, char *buff, size_t maxlen)

fp:     Input stream from which to read
buff:   Character array into which line is read
maxlen: Size of array buff, not counting null byte

xt_fgetline() reads a line of text from a FILE stream. Input is terminated when a newline or end of file is encountered, or when maxlen characters have been read. Note that up to maxlen characters may be stored, NOT INCLUDING THE NULL TERMINATOR BYTE, hence the buffer should be at least maxlen+1 bytes long. Unlike fgets(3), xt_fgetline() does not store the trailing newline character in the string.

The number of bytes read, or EOF if EOF is encountered before a newline

fgets(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.