home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume4
/
settz
/
strchr.c
< prev
next >
Wrap
C/C++ Source or Header
|
1986-11-30
|
419b
|
27 lines
#
/*LINTLIBRARY*/
#include "stdio.h"
#ifdef OBJECTID
static char sccsid[] = "@(#)strchr.c 7.3";
#endif
/*
** For the benefit of BSD folks.
** This is written from the manual description,
** so there's no guarantee that it works the same as the "real thing."
*/
char *
strchr(string, c)
register char * string;
register int c;
{
do if (*string == c)
return string;
while (*string++ != '\0');
return NULL;
}