view target-utils/libc/index.c @ 613:ab4021fb1c66

doc/Loadtools-performance: flash programming added
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 24 Feb 2020 22:30:00 +0000
parents 7fb62fc724dc
children
line wrap: on
line source

char *
index(p, ch)
	register char *p, ch;
{
	for (;; ++p) {
		if (*p == ch)
			return(p);
		if (!*p)
			return((char *)0);
	}
	/* NOTREACHED */
}