xref: /csrg-svn/usr.bin/pascal/libpc/RELSGT.c (revision 62096)
140865Sbostic /*-
2*62096Sbostic  * Copyright (c) 1979, 1993
3*62096Sbostic  *	The Regents of the University of California.  All rights reserved.
440865Sbostic  *
540865Sbostic  * %sccs.include.redist.c%
640865Sbostic  */
71687Smckusick 
840865Sbostic #ifndef lint
9*62096Sbostic static char sccsid[] = "@(#)RELSGT.c	8.1 (Berkeley) 06/06/93";
1040865Sbostic #endif /* not lint */
111687Smckusick 
121687Smckusick #include "h00vars.h"
131687Smckusick 
143021Smckusic bool
RELSGT(siz,str1,str2)153021Smckusic RELSGT(siz, str1, str2)
161687Smckusick 
173021Smckusic 	long		siz;
181687Smckusick 	register char	*str1;
191687Smckusick 	register char	*str2;
201687Smckusick {
213021Smckusic 	register int size = siz;
223021Smckusic 
231687Smckusick 	while (*str1++ == *str2++ && --size)
241687Smckusick 		/* void */;
251687Smckusick 	if ((size == 0) || (*--str1 <= *--str2))
261687Smckusick 		return FALSE;
271687Smckusick 	return TRUE;
281687Smckusick }
29