1: # include <sccs.h> 2: 3: SCCSID(@(#)IIsequal.c 8.1 12/31/84) 4: 5: 6: /* 7: ** IISEQUAL -- String equality comparison 8: ** 9: ** Parameters: 10: ** s1, s2 -- strings to be tested for absolute equality 11: ** 12: ** Returns: 13: ** 1 -- if = 14: ** 0 otherwise 15: ** 16: ** Side Effects: 17: ** none 18: ** 19: ** Called By: 20: ** IIgetpath() [IIingres.c] 21: */ 22: 23: IIsequal(s1, s2) 24: char *s1, *s2; 25: { 26: register char *r1, *r2; 27: 28: 29: r1 = s1; 30: r2 = s2; 31: while (*r1 || *r2) 32: if (*r1++ != *r2++) 33: return (0); 34: return (1); 35: }