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

# STRNE -- Compare two strings for inequality.

bool procedure strne (s1, s2)

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

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