File: FLfReadData.3tsp

package info (click to toggle)
libtsp 2r8-1
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 4,908 kB
  • ctags: 1,409
  • sloc: ansic: 12,525; sh: 1,044; makefile: 164
file content (47 lines) | stat: -rw-r--r-- 1,152 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
.TH FLfReadData 3tsp "TSP (libtsp/FL)"
.SH Routine
.in +4n
.ti -4n
int FLfReadData (const char Fname[], int MaxNval, float x[])
.in -4n
.SH Purpose
.in +4n
.ti -4n
Read numeric data in text form from a file
.in -4n
.SH Description
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.
.PP
This routine prints an error message and halts execution on detection of an
error.
.SH Parameters
.in +4n
.ti -4n
<-  int FLfReadData
.br
Number of values returned
.ti -4n
 -> const char Fname[]
.br
File name
.ti -4n
 -> int MaxNval
.br
Maximum number of values to be returned
.ti -4n
<-  float x[]
.br
Array of output values
.in -4n
.SH Author / revision
P. Kabal  Copyright (C) 1996
/ Revision 1.5  1996/04/22
.SH See Also
FLfWriteData,
libtsp