# | 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; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |