view target-utils/libc/rindex.c @ 650:bf840c984113

fc-xram reworked to use the new binary protocol
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 02 Mar 2020 03:21:41 +0000
parents 7fb62fc724dc
children
line wrap: on
line source

char *
rindex(p, ch)
	register char *p, ch;
{
	register char *save;

	for (save = 0;; ++p) {
		if (*p == ch)
			save = p;
		if (!*p)
			return(save);
	}
	/* NOTREACHED */
}