Ultrix-3.1/src/libc/sysV/strchr.c
/**********************************************************************
* Copyright (c) Digital Equipment Corporation 1984, 1985, 1986. *
* All Rights Reserved. *
* Reference "/usr/src/COPYRIGHT" for applicable restrictions. *
**********************************************************************/
/* SCCSID: @(#)strchr.c 3.0 4/22/86 */
/* (System 5) 1.2 */
/* 3.0 SID # 1.2 */
/*LINTLIBRARY*/
/*
* Return the ptr in sp at which the character c appears;
* NULL if not found
*/
#define NULL 0
char *
strchr(sp, c)
register char *sp, c;
{
do {
if(*sp == c)
return(sp);
} while(*sp++);
return(NULL);
}