Annotation of 43BSDTahoe/lib/libc/gen/strlen.c, revision 1.1

1.1     ! root        1: #if defined(LIBC_SCCS) && !defined(lint)
        !             2: static char sccsid[] = "@(#)strlen.c   5.2 (Berkeley) 3/9/86";
        !             3: #endif LIBC_SCCS and not lint
        !             4: 
        !             5: /*
        !             6:  * Returns the number of
        !             7:  * non-NULL bytes in string argument.
        !             8:  */
        !             9: 
        !            10: strlen(s)
        !            11: register char *s;
        !            12: {
        !            13:        register n;
        !            14: 
        !            15:        n = 0;
        !            16:        while (*s++)
        !            17:                n++;
        !            18:        return(n);
        !            19: }

unix.superglobalmegacorp.com

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