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) - STdec1float</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFACD">
<H2>STdec1float</H2>
<HR>
<H4>Routine</H4>
<DL>
<DT>
int STdec1float (const char String[], float *Fval)
</DL>
<H4>Purpose</H4>
<DL>
<DT>
Decode a float value
</DL>
<H4>Description</H4>
This routine decodes a string containing a numeric value. The decoded datum
is stored as a float value. If a decoding error is detected, a warning
message is printed and error status is set. A warning messages is printed
if extra data follows the requested value (this data is ignored).
<H4>Parameters</H4>
<DL>
<DT>
<- int STdec1float
<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>
<- float *Fval
<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.10 1997/10/10
<H4>See Also</H4>
<A HREF="STdec1double.html">STdec1double</A>,
<A HREF="STdec1int.html">STdec1int</A>,
<A HREF="STdec1long.html">STdec1long</A>,
<A HREF="STdecNfloat.html">STdecNfloat</A>
<P>
<HR>
Main Index <A HREF="../libtsp.html">libtsp</A>
</BODY>
</HTML>
|