blob: c924ebc71ed7c423c0daa4ffdfff545b0a543477 (
plain) (
blame)
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
|
.help clarg Sep86 imfort
.ih
NAME
clarg -- fetch and decode the value of a command line argument
.ih
SYNOPSIS
.nf
subroutine clargc (argno, cval, ier)
subroutine clargi (argno, ival, ier)
subroutine clargr (argno, rval, ier)
subroutine clargd (argno, dval, ier)
integer argno #I index of argument to be decoded
integer ier #O status return
character*(*) cval #O string value of argument
integer ival #O integer value of argument
real rval #O real value of argument
doubleprecision dval #O double value of argument
.fi
.ih
DESCRIPTION
The four \fIclarg\fR procedures are used to fetch and decode the value of
the indexed command line argument; the first argument is number one.
Any argument may be returned as a string with \fIclargc\fR.
Numeric arguments are decoded using the IRAF formatted i/o primitives,
hence octal constants (`B' suffix), hex constants (`X' suffix),
and sexagesimal numbers are all legal as input.
.ih
RETURN VALUE
A status of zero indicates that the indexed argument was present on the
command line and could be decoded in the manner specified.
.nf
IE_GCMDLN: cannot read command line string
IE_NEXARG: nonexistent command line argument referenced
IE_NONNUMARG: command line argument cannot be decoded as a number
.fi
.ih
SEE ALSO
clnarg, clrawc
.endhelp
|