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
|
<HTML>
<HEAD>
<TITLE>TSP (libtsp/ST) - STdec1int</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFACD">
<H2>STdec1int</H2>
<HR>
<H4>Routine</H4>
<DL>
<DT>
int STdec1int (const char String[], int *Ival)
</DL>
<H4>Purpose</H4>
<DL>
<DT>
Decode an integer value
</DL>
<H4>Description</H4>
This routine decodes a string containing a numeric value. The decoded datum
is stored as an 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>
<- int STdec1int
<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>
-> const char String[]
<DD>
Input string
<DT>
<- int *Ival
<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.9 1997/10/10
<H4>See Also</H4>
<A HREF="STdec1double.html">STdec1double</A>,
<A HREF="STdec1float.html">STdec1float</A>,
<A HREF="STdec1long.html">STdec1long</A>,
<A HREF="STdecNint.html">STdecNint</A>
<P>
<HR>
Main Index <A HREF="../libtsp.html">libtsp</A>
</BODY>
</HTML>
|