view target-utils/libc/rindex.c @ 411:8b8e723f5699

INSTALL: updates regarding the ARM7 gcc toolchain
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 25 Oct 2018 18:40:10 +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 */
}