4.4BSD/usr/src/contrib/mh-6.8/sbr/r1bindex.c

Compare this file to the similar file:
Show the results in this format:

/* r1bindex.c - right plus 1 or beginning index */


char *r1bindex(str, chr)
register char *str;
register int chr;
{
    register char  *cp;

    for (cp = str; *cp; cp++)
	continue;
    --cp;
    while (cp >= str && *cp != chr)
	--cp;
    return (++cp);
}