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
|
<HTML>
<HEAD>
<TITLE>TSP (libtsp/ST) - STdecLrange</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFACD">
<H2>STdecLrange</H2>
<HR>
<H4>Routine</H4>
<DL>
<DT>
int STdecLrange (const char String[], long int *Lval1, long int *Lval2)
</DL>
<H4>Purpose</H4>
<DL>
<DT>
Decode a range specification for long integer values
</DL>
<H4>Description</H4>
This routine decodes a string specifying a range of long integer values. The
range is specified in the form "Lv" or "Lv1:Lv2", for example "-23 : 45".
Optional white-space (as defined by isspace) can surround the values. For
the case of a single value Lv, this is equivalent to the range "Lv:Lv". If
an error is encountered, neither output value is set.
<H4>Parameters</H4>
<DL>
<DT>
<- int STdecIrange
<DD>
Error status, 0 for no error, 1 for error
<DT>
-> const char String[]
<DD>
Input string
<DT>
<- long int *Lval1
<DD>
First value
<DT>
<- long int *Lval2
<DD>
Second value
</DL>
<H4>Author / revision</H4>
P. Kabal Copyright (C) 1997
/ Revision 1.4 1997/10/31
<H4>See Also</H4>
<A HREF="STdecIrange.html">STdecIrange</A>
<P>
<HR>
Main Index <A HREF="../libtsp.html">libtsp</A>
</BODY>
</HTML>
|