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

# GARGX -- Interpret the next input token as a complex number.

procedure gargx (xval)

complex	xval
int	gctox()
include	"scan.com"

begin
	if (sc_stopscan)
	    return

	if (gctox (sc_scanbuf, sc_ip, xval) > 0)
	    sc_ntokens = sc_ntokens + 1
	else
	    sc_stopscan = true
end