1: /*	@(#)strcmp.c	2.1	SCCS id keyword	*/
   2: /*
   3:  * Compare strings:  s1>s2: >0  s1==s2: 0  s1<s2: <0
   4:  */
   5: 
   6: strcmp(s1, s2)
   7: register char *s1, *s2;
   8: {
   9: 
  10:     while (*s1 == *s2++)
  11:         if (*s1++=='\0')
  12:             return(0);
  13:     return(*s1 - *--s2);
  14: }

Defined functions

strcmp defined in line 6; used 556 times
Last modified: 1981-07-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 764
Valid CSS Valid XHTML 1.0 Strict