
#include "V.h"
/*
* Return a pointer to the first occurrence of c in s, or NULL if it isn't found.
* We stop at the first instance of c or at the first null char.
*/
char* d_index(s,c)
	char*s;
	char c;
{	char x;


	for (x = *s; x; x = *++s) {
		if (x == c) {

			return(s);
		}
	}
	if (x == c) {

		return(s);
	}

	return(0);
}
