home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
file39a.zip
/
src
/
localsrc
/
strchr.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-05
|
262b
|
22 lines
/*
* Local copy of strchr (a.k.a. index) for portability.
* Totally public domain.
*/
#include <stdio.h>
char *
strchr(s, c)
char *s, c;
{
char *x = s;
while (*x != c)
if (*x == '\0')
return(NULL);
else
++x;
return(x);
}