view target-utils/libc/index.c @ 862:5efb2832f4c2

fc-add-ramps: more compacted output
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 20 Dec 2021 00:54:57 +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 */
}