File: STdec1long.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,356 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/ST) - STdec1long</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFACD">
<H2>STdec1long</H2>
<HR>
<H4>Routine</H4>
<DL>
<DT>
int STdec1long (const char String[], long int *Lval)
</DL>
<H4>Purpose</H4>
<DL>
<DT>
Decode a long integer value
</DL>
<H4>Description</H4>
This routine decodes a string containing a numeric value.  The decoded datum
is stored as a long integer value.  If a decoding error is detected, a
warning message is printed and an error status value is returned.  A warning
message is printed if extra data follows the requested value (this data is
ignored).
<H4>Parameters</H4>
<DL>
<DT>
&lt;-  int STdec1long
<DD>
Error status,
<PRE>
  0 - no error
  1 - error, too few values or data format error
  2 - warning, data values too large or too small
</PRE>
<DT>
 -&gt; const char String[]
<DD>
Input string
<DT>
&lt;-  long int *Lval
<DD>
Returned value.  This value is not changed if an error status is
returned.
</DL>
<H4>Author / revision</H4>
P. Kabal  Copyright (C) 1997
/ Revision 1.3  1997/10/10
<H4>See Also</H4>
<A HREF="STdec1double.html">STdec1double</A>,
<A HREF="STdec1float.html">STdec1float</A>,
<A HREF="STdec1int.html">STdec1int</A>,
<A HREF="STdecNlong.html">STdecNlong</A>
<P>
<HR>
Main Index <A HREF="../libtsp.html">libtsp</A>
</BODY>
</HTML>