1/* @(#)index.c 4.1 (Berkeley) 12/21/80 */2/*
3 * Return the ptr in sp at which the character c appears;
4 * NULL if not found
5 */67#defineNULL 0
89char *
10index(sp, c)
11registerchar *sp, c;
12{
13do {
14if (*sp == c)
15return(sp);
16 } while (*sp++);
17return(NULL);
18}
19