Annotation of coherent/b/lib/libc/gen/old/strcmp.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * Coherent Standard I/O Library
        !             3:  * Lexicographic comparison of two strings.
        !             4:  */
        !             5: 
        !             6: #include <stdio.h>
        !             7: 
        !             8: strcmp(s1, s2)
        !             9: register unsigned char *s1, *s2;
        !            10: {
        !            11:        while (*s1 == *s2++)
        !            12:                if (*s1++ == '\0')
        !            13:                        return (0);
        !            14:        return (*s1 - *--s2);
        !            15: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.