aboutsummaryrefslogtreecommitdiff
path: root/sys/clio/clgstr.x
blob: c8ec9ebd8485091ae4d3636cb3c757f0fcb69210 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.

include	<syserr.h>

# CLGSTR -- Get a string parameter from the CL.

procedure clgstr (param, outstr, maxch)

char	param[ARB], outstr[maxch]
int	maxch
int	clscan(), nscan()

begin
	if (clscan (param) == EOF)
	    call syserr (SYS_CLEOFNLP)
	else {
	    call gargstr (outstr, maxch)
	    if (nscan() != 1)
		outstr[1] = EOS
	}
end