home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 48
/
Amiga_Dream_48.iso
/
Atari
/
c
/
sozobon-v2
/
dlibsrc.lha
/
STRSTR.C
< prev
next >
Wrap
C/C++ Source or Header
|
1988-10-05
|
279b
|
16 lines
char *strstr(string, pattern)
register char *string, *pattern;
{
register int plen;
char *strchr();
plen = strlen(pattern);
while(string = strchr(string, *pattern))
{
if(strncmp(string, pattern, plen) == 0)
break;
++string;
}
return(string);
}