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

# GARGD -- Interpret the next input token as a double precision floating
# number.

procedure gargd (dval)

double	dval
int	gctod()
include	"scan.com"

begin
	if (sc_stopscan)
	    return

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