BSD 3 development
[unix-history] / usr / src / cmd / uucp / index.c
#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)
char c, *str;
{
for (; *str != '\0'; str++) {
if (*str == c)
return(str);
}
return(NULL);
}