view target-utils/libc/index.c @ 554:c44f3bf0e4d5

CHANGES: Am29DL640G flash support documented
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 04 Jan 2020 17:54:07 +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 */
}