ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/savestr.c
(Generate patch)

Comparing ray/src/common/savestr.c (file contents):
Revision 2.1 by greg, Tue Nov 12 16:54:33 1991 UTC vs.
Revision 2.2 by greg, Fri Jul 3 10:51:50 1992 UTC

# Line 96 | Line 96 | char  *s;
96   }
97  
98  
99 int
100 strcmp(s1, s2)                          /* check for s1==s2 */
101 register char  *s1, *s2;
102 {
103        if (s1 == s2)
104                return(0);
105
106        while (*s1 == *s2++)
107                if (!*s1++)
108                        return(0);
109
110        return(*s1 - *--s2);
111 }
112
113
99   static int
100   shash(s)                                /* hash a string */
101   register char  *s;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines