view target-utils/libc/index.c @ 438:2ba7512efae5

CHANGES: Mot C155 flashing fix documented
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 06 Nov 2018 16:48:51 +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 */
}