view target-utils/libc/rindex.c @ 230:a91dc7157544

fc-loadtool: automated command script mode implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 03 Aug 2017 02:12:56 +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 */
}