view target-utils/libc/index.c @ 162:ce7479d28b02

fc-tmsh: aur response handling implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 17 Mar 2017 08:28:21 +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 */
}