xref: /csrg-svn/usr.bin/pascal/libpc/RELEQ.c (revision 40865)
1*40865Sbostic /*-
2*40865Sbostic  * Copyright (c) 1979 The Regents of the University of California.
3*40865Sbostic  * All rights reserved.
4*40865Sbostic  *
5*40865Sbostic  * %sccs.include.redist.c%
6*40865Sbostic  */
71684Smckusick 
8*40865Sbostic #ifndef lint
9*40865Sbostic static char sccsid[] = "@(#)RELEQ.c	1.3 (Berkeley) 04/09/90";
10*40865Sbostic #endif /* not lint */
111684Smckusick 
121684Smckusick #include "h00vars.h"
131684Smckusick 
143021Smckusic bool
153021Smckusic RELEQ(siz, str1, str2)
161684Smckusick 
173021Smckusic 	long		siz;
181684Smckusick 	register char	*str1;
191684Smckusick 	register char	*str2;
201684Smckusick {
213021Smckusic 	register int size = siz;
223021Smckusic 
231684Smckusick 	while (*str1++ == *str2++ && --size)
241684Smckusick 		/* void */;
251684Smckusick 	if (size == 0)
261684Smckusick 		return TRUE;
271684Smckusick 	return FALSE;
281684Smckusick }
29