aboutsummaryrefslogtreecommitdiff
path: root/sys/fmtio/strle.x
blob: 34ad78701b41f53fd2319ea5202b4b3166cc8051 (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.

# STRLE -- Is S1 <= S2.

bool procedure strle (s1, s2)

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

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