aboutsummaryrefslogtreecommitdiff
path: root/sys/fmtio/gargc.x
blob: e6ce69962d4c3087a678993b7fbbf922d5be9286 (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.

# GARGC -- Interpret the next input token as a character constant.

procedure gargc (cval)

char	cval
int	cctoc()
include	"scan.com"

begin
	if (sc_stopscan)
	    return

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