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

1.1     ! root        1: /*
        !             2:  * Find rightmost match or return NULL.
        !             3:  */
        !             4: #include <stdio.h>
        !             5: 
        !             6: char *
        !             7: rindex(s, c)
        !             8: register unsigned char *s;
        !             9: unsigned int c;
        !            10: {
        !            11:        register unsigned char c1, c2, *match;
        !            12: 
        !            13:        for(c2 = c, match = NULL; c1 = *s; s++)
        !            14:                if(c1 == c2)
        !            15:                        match = s;
        !            16:        return(match);
        !            17: }

unix.superglobalmegacorp.com

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