aboutsummaryrefslogtreecommitdiff
path: root/sys/clio/clgetx.x
blob: 68e2b068a14c3cee88d2dda010a5541f121ae39a (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
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.

include	<syserr.h>

# CLGETX -- Get a complex parameter from the CL.

complex procedure clgetx (param)

char	param[ARB]
complex	xval
int	clscan(), nscan()

begin
	if (clscan (param) == EOF)
	    call syserrs (SYS_CLEOFNLP, param)
	else {
	    call gargx (xval)
	    if (nscan() != 1)
		call syserrs (SYS_CLNOTNUM, param)
	}

	return (xval)
end