Annotation of researchv9/libc/gen/strchr.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * Return the ptr in sp at which the character c appears;
        !             3:  * NULL if not found
        !             4:  */
        !             5: 
        !             6: #define        NULL    0
        !             7: 
        !             8: char *
        !             9: strchr(sp, c)
        !            10: register char *sp, c;
        !            11: {
        !            12:        do {
        !            13:                if (*sp == c)
        !            14:                        return(sp);
        !            15:        } while (*sp++);
        !            16:        return(NULL);
        !            17: }

unix.superglobalmegacorp.com

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