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: }

Defined functions

IIsequal defined in line 3; used 1 times
Last modified: 1986-04-17
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 731
Valid CSS Valid XHTML 1.0 Strict