Files
seta75D 2e8a93c394 Init
2021-10-11 18:20:23 -03:00

23 lines
353 B
C

#if !defined(lint) && defined(SCCSIDS)
static char sccsid[] = "@(#)index.c 1.1 92/07/30 SMI"; /* from UCB 4.1 80/12/21 */
#endif
/*
* Return the ptr in sp at which the character c appears;
* NULL if not found
*/
#define NULL 0
char *
index(sp, c)
register char *sp, c;
{
do {
if (*sp == c)
return (sp);
} while (*sp++);
return (NULL);
}