File:  [CSRG BSD Unix] / 43BSD / ingres / source / libq / IIsequal.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:55 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43
BSD 4.3

# include	<sccs.h>

SCCSID(@(#)IIsequal.c	8.1	12/31/84)


/*
**  IISEQUAL -- String equality comparison
**
**	Parameters:
**		s1, s2 -- strings to be tested for absolute equality
**
**	Returns:
**		1 -- if =
**		0 otherwise
**
**	Side Effects:
**		none
**
**	Called By:
**		IIgetpath() [IIingres.c]
*/

IIsequal(s1, s2)
char	*s1, *s2;
{
	register char	*r1, *r2;


	r1 = s1;
	r2 = s2;
	while (*r1 || *r2)
		if (*r1++ != *r2++)
			return (0);
	return (1);
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.