Annotation of coherent/b/lib/libc/string/strlen.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * strlen.c
        !             3:  * ANSI 4.11.6.3.
        !             4:  * Return the length of a string.
        !             5:  */
        !             6: 
        !             7: #include <string.h>
        !             8: 
        !             9: size_t strlen(s) char *s;
        !            10: {
        !            11:        register char *cp;
        !            12: 
        !            13:        for (cp = s; *cp++; )
        !            14:                ;
        !            15:        return ((size_t)(cp-s-1));
        !            16: }

unix.superglobalmegacorp.com

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