Commit | Line | Data |
---|---|---|
0d78ca85 | 1 | /*- |
af39f981 KB |
2 | * Copyright (c) 1979, 1993 |
3 | * The Regents of the University of California. All rights reserved. | |
0d78ca85 KB |
4 | * |
5 | * %sccs.include.redist.c% | |
6 | */ | |
57d61f88 | 7 | |
0d78ca85 | 8 | #ifndef lint |
af39f981 | 9 | static char sccsid[] = "@(#)RELSLE.c 8.1 (Berkeley) %G%"; |
0d78ca85 | 10 | #endif /* not lint */ |
57d61f88 KM |
11 | |
12 | #include "h00vars.h" | |
13 | ||
492cc5d3 KM |
14 | bool |
15 | RELSLE(siz, str1, str2) | |
57d61f88 | 16 | |
492cc5d3 | 17 | long siz; |
57d61f88 KM |
18 | register char *str1; |
19 | register char *str2; | |
20 | { | |
492cc5d3 KM |
21 | register int size = siz; |
22 | ||
57d61f88 KM |
23 | while (*str1++ == *str2++ && --size) |
24 | /* void */; | |
25 | if ((size == 0) || (*--str1 <= *--str2)) | |
26 | return TRUE; | |
27 | return FALSE; | |
28 | } |