|
|
1.1 ! root 1: /* ! 2: * streq.c ! 3: * Not in ANSI draft standard. ! 4: * Compare two strings for equality. ! 5: */ ! 6: ! 7: #include <stdio.h> ! 8: ! 9: int streq(s1, s2) register char *s1, *s2; ! 10: { ! 11: while (*s1 == *s2++) ! 12: if (*s1++ == '\0') ! 13: return (1); ! 14: return (0); ! 15: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.