char *FLgetLine (FILE *fp);


Read a line of text from a file


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.


<- 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


Main Index libtsp