aboutsummaryrefslogtreecommitdiff
path: root/sys/fmtio/strlt.x
blob: 0a530d4d945dbbb42a5085e9a8dc3e9841e534e2 (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.

# STRLT -- Is S1 < S2.

bool procedure strlt (s1, s2)

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

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