date and time created 85/01/22 13:04:37 by ralph
[unix-history] / usr / src / usr.bin / uucp / port / index.c
#ifndef lint
static char sccsid[] = "@(#)index.c 5.1 (Berkeley) %G%";
#endif
#include <stdio.h>
/*******
* char *
* index(str, c) return pointer to character c
* char c, *str;
*
* return codes:
* NULL - character not found
* pointer - pointer to character
*/
char *
index(str, c)
register char c, *str;
{
for (; *str != '\0'; str++) {
if (*str == c)
return(str);
}
return(NULL);
}