STdecLrange


Routine

int STdecLrange (const char String[], long int *Lval1, long int *Lval2)

Purpose

Decode a range specification for long integer values

Description

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.

Parameters

<- int STdecIrange
Error status, 0 for no error, 1 for error
-> const char String[]
Input string
<- long int *Lval1
First value
<- long int *Lval2
Second value

Author / revision

P. Kabal / Revision 1.7 2003/05/09

See Also

STdecIrange


Main Index libtsp