view target-utils/libc/index.c @ 190:2d9b1d69862d

doc: RF calibration documents/notes moved into RF-cal subdir
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 23 Apr 2017 16:47:50 +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 */
}