Annotation of coherent/g/usr/lib/misc/strchrtr.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * Lookup a char on a string, return the corresponding
        !             3:  * char on a second string or a default.
        !             4:  */
        !             5: strchrtr(from, to, c, def)
        !             6: char *from, *to;
        !             7: register int c;
        !             8: int def;
        !             9: {
        !            10:        register int i, fc;
        !            11: 
        !            12:        for (i = 0; fc = from[i]; i++)
        !            13:                if (fc == c)
        !            14:                        return (to[i]);
        !            15:        return (def);
        !            16: }

unix.superglobalmegacorp.com

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