STdecIrange
Routine
-
int STdecIrange (const char String[], int *Ival1, int *Ival2)
Purpose
-
Decode a range specification for integer values
Description
This routine decodes a string specifying a range of integer values. The
range is specified in the form "Iv" or "Iv1:Iv2", for example "-23 : 45".
Optional white-space (as defined by isspace) can surround the values. For
the case of a single value Iv, this is equivalent to the range "Iv:Iv". If
an error is encountered, neither output value is set.
Parameters
-
<- int STdecIrange
-
Error status, 0 for no error, 1 for error
-
-> const char String[]
-
Input string
-
<- int *Ival1
-
First value
-
<- int *Ival2
-
Second value
Author / revision
P. Kabal
/ Revision 1.24 2003/05/09
See Also
STdecLrange
Main Index libtsp