File: FLgetLine.html

package info (click to toggle)
libtsp 3r0-1
  • links: PTS
  • area: non-free
  • in suites: potato, woody
  • size: 5,096 kB
  • ctags: 1,798
  • sloc: ansic: 14,464; sh: 1,217; makefile: 182
file content (47 lines) | stat: -rw-r--r-- 1,178 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<HTML>
<HEAD>
<TITLE>TSP (libtsp/FL) - FLgetLine</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFACD">
<H2>FLgetLine</H2>
<HR>
<H4>Routine</H4>
<DL>
<DT>
char *FLgetLine (FILE *fp);
</DL>
<H4>Purpose</H4>
<DL>
<DT>
Read a line of text from a file
</DL>
<H4>Description</H4>
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.
<H4>Parameters</H4>
<DL>
<DT>
&lt;-  char *FLgetLine
<DD>
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.
<DT>
 -&gt; FILE *fp
<DD>
File pointer to the file
</DL>
<H4>Author / revision</H4>
P. Kabal  Copyright (C) 1997
/ Revision 1.13  1997/10/11
<H4>See Also</H4>
<A HREF="FLgetRec.html">FLgetRec</A>
<P>
<HR>
Main Index <A HREF="../libtsp.html">libtsp</A>
</BODY>
</HTML>