view target-utils/libc/index.c @ 591:adcb617e6a92

fc-fsio: let the object deletion command be called just 'rm' 'delete' is still supported for backward compatibility
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 04 Feb 2020 03:09:11 +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 */
}