home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 48
/
Amiga_Dream_48.iso
/
Atari
/
c
/
sozobon-v2
/
dlibsrc.lha
/
STRISTR.C
< prev
next >
Wrap
C/C++ Source or Header
|
1988-10-05
|
267b
|
17 lines
#include <stddef.h>
char *stristr(string, pattern)
register char *string, *pattern;
{
register int plen;
plen = strlen(pattern);
while(*string)
{
if(strnicmp(string, pattern, plen) == 0)
return(string);
++string;
}
return(NULL);
}