aboutsummaryrefslogtreecommitdiff
path: root/sys/clio/clgetd.x
blob: 12657a744e199b3c5baeec5822c329df020e8376 (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>

# CLGETD -- Get a double precision floating parameter from the CL.

double procedure clgetd (param)

char	param[ARB]
double	dval
int	clscan(), nscan()

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

	return (dval)
end