home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoft Programmer's Library 1.3
/
Microsoft-Programers-Library-v1.3.iso
/
sampcode
/
alde_c
/
misc
/
lib
/
dlibssrc
/
stristr.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1987-06-14
|
369 b
|
20 lines
#include <d:\usr\stdlib\stdio.h>
char *stristr(string, pattern)
register char *string;
register char *pattern;
/*
* Same as strstr(), but ignore the case of any alphabetic characters.
*/
{
register int plen;
plen = strlen(pattern);
while(*string) {
if(strnicmp(string, pattern, plen) == 0)
return(string);
++string;
}
return(NULL);
}