blob: 4e75ec3120d52d5eff674789fdeb76753aee7d62 (
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>
# CLGETB -- Get a boolean parameter from the CL.
bool procedure clgetb (param)
char param[ARB]
bool bval
int clscan(), nscan()
begin
if (clscan (param) == EOF)
call syserrs (SYS_CLEOFNLP, param)
else {
call gargb (bval)
if (nscan() != 1)
call syserrs (SYS_CLNOTBOOL, param)
}
return (bval)
end
|