Annotation of researchv10no/cmd/prefer/libux3/strchr.c, revision 1.1.1.1

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

unix.superglobalmegacorp.com

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