home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 March
/
VPR9703A.ISO
/
VPR_DATA
/
DOGA
/
SOURCES
/
REND.LZH
/
READER
/
STRCMPI.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-10-23
|
253b
|
15 lines
#include <stdio.h>
#include <string.h>
#define toupper(c) (('a' <= (c) && (c) <= 'z') ? ((c) - 'a' + 'A') : (c))
int strcmpi(char *p1, char *p2)
{
for(;*p1 && *p2 && toupper(*p1) == toupper(*p2); p1++, p2++)
;
return *p1 - *p2;
}