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

# STRGE -- Is S1 >= S2.

bool procedure strge (s1, s2)

char	s1[ARB], s2[ARB]
int	ip

begin
	do ip = 1, ARB
	    if (s2[ip] == EOS)
		return (true)
	    else if (s1[ip] != s2[ip])
		return (s1[ip] > s2[ip])
end