diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
| commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
| tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /noao/twodspec/multispec/clinput.x | |
| download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz | |
Initial commit
Diffstat (limited to 'noao/twodspec/multispec/clinput.x')
| -rw-r--r-- | noao/twodspec/multispec/clinput.x | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/noao/twodspec/multispec/clinput.x b/noao/twodspec/multispec/clinput.x new file mode 100644 index 00000000..163c8354 --- /dev/null +++ b/noao/twodspec/multispec/clinput.x @@ -0,0 +1,28 @@ +# Specialized CL get routines. + + +# CLGRANGES -- Get a range. A range string is input and the string is +# decoded into a range array. The number of values in the range array is +# returned by the function. + +int procedure clgranges (param, min_value, max_value, ranges, max_ranges) + +char param[ARB] +int min_value +int max_value +int ranges[ARB] +int max_ranges + +char str[SZ_LINE] +int n + +int decode_ranges() + +begin + call clgstr (param, str, SZ_LINE) + + if (decode_ranges (str,ranges,max_ranges,min_value,max_value,n) == ERR) + call error (0, "Error in range string") + + return (n) +end |
