/* ============================================================================ index.c -- BSD style index function Version 1 -- 1987-02-11 -- D.N. Lynx Crowe ============================================================================ */ char *index(char *str, char c) { while (*str) { if (*str == c) return(str); ++str; } return((char *)0); }