FLgetLine


Routine

char *FLgetLine (FILE *fp);

Purpose

Read a line of text from a file

Description

This routine retrieves a line of input from a file. This routine reads characters until a newline is encountered. The newline is not returned. The return value is a pointer to the text string or NULL if end-of-file is encountered.

Parameters

<- char *FLgetLine
Pointer to the text string. This is NULL if end-of-file is encountered and the line is empty. Otherwise, when end-of-file is encountered, the line is treated as if it were terminated with a newline. The text string is in an internally allocated storage area; each call to this routine overlays this storage.
-> FILE *fp
File pointer to the file

Author / revision

P. Kabal / Revision 1.15 2003/05/09

See Also

FLgetRec


Main Index libtsp