File: FLfReadData.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 (57 lines) | stat: -rw-r--r-- 1,397 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
48
49
50
51
52
53
54
55
56
57
<HTML>
<HEAD>
<TITLE>TSP (libtsp/FL) - FLfReadData</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFACD">
<H2>FLfReadData</H2>
<HR>
<H4>Routine</H4>
<DL>
<DT>
int FLfReadData (const char Fname[], int MaxNval, float x[])
</DL>
<H4>Purpose</H4>
<DL>
<DT>
Read numeric data in text form from a file
</DL>
<H4>Description</H4>
This procedure reads floating point numeric data from a file.  The file
contains data in text form.  Data fields are free format, with data values
separated by white-space (as defined by isspace).  Zero or more data values
can appear in each line of input.  Commas can also be used to separate data
values, but only within a line, i.e. a comma should not appear at the end of
a line.  A "!" character marks the beginning of a comment that extends to the
end of the line.
<P>
This routine prints an error message and halts execution on detection of an
error.
<H4>Parameters</H4>
<DL>
<DT>
&lt;-  int FLfReadData
<DD>
Number of values returned
<DT>
 -&gt; const char Fname[]
<DD>
File name
<DT>
 -&gt; int MaxNval
<DD>
Maximum number of values to be returned
<DT>
&lt;-  float x[]
<DD>
Array of output values
</DL>
<H4>Author / revision</H4>
P. Kabal  Copyright (C) 1997
/ Revision 1.7  1997/10/14
<H4>See Also</H4>
<A HREF="FLfWriteData.html">FLfWriteData</A>
<P>
<HR>
Main Index <A HREF="../libtsp.html">libtsp</A>
</BODY>
</HTML>