changed "dp" command to say "At EOF" when executed on last message
[unix-history] / usr / src / usr.bin / mail / index.c
/*
* Determine the leftmost index of the character
* in the string.
*/
static char *SccsId = "@(#)index.c 2.1 %G%";
char *
index(str, ch)
char *str;
{
register char *cp;
register int c;
for (c = ch, cp = str; *cp; cp++)
if (*cp == c)
return(cp);
return(NOSTR);
}