| Revision: | 2.3 |
| Committed: | Tue Feb 25 02:47:22 2003 UTC (22 years, 8 months ago) by greg |
| Content type: | text/plain |
| Branch: | MAIN |
| CVS Tags: | rad5R4, rad5R2, rad5R3, rad5R0, rad5R1, rad4R2, rad3R7P2, rad3R7P1, rad6R0, rad4R1, rad4R0, rad3R5, rad3R6, rad3R6P1, rad3R8, rad3R9, rad4R2P1, rad4R2P2, HEAD |
| Changes since 2.2: | +1 -56 lines |
| Log Message: | Replaced inline copyright notice with #include "copyright.h" |
| # | Content |
|---|---|
| 1 | #ifndef lint |
| 2 | static const char RCSid[] = "$Id$"; |
| 3 | #endif |
| 4 | /* |
| 5 | * String comparison routine optimized for use with savestr.c |
| 6 | */ |
| 7 | |
| 8 | #include "copyright.h" |
| 9 | |
| 10 | |
| 11 | int |
| 12 | strcmp(s1, s2) /* check for s1==s2 */ |
| 13 | register char *s1, *s2; |
| 14 | { |
| 15 | if (s1 == s2) |
| 16 | return(0); |
| 17 | |
| 18 | while (*s1 == *s2++) |
| 19 | if (!*s1++) |
| 20 | return(0); |
| 21 | |
| 22 | return(*s1 - *--s2); |
| 23 | } |