home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CICA 1995 May
/
cica_0595_4.zip
/
cica_0595_4
/
UTIL
/
WSPRTERM
/
WSPRTERM.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-12-28
|
789b
|
38 lines
#include <windows.h>
#include <ctype.h>
char far *remoteStr1, far *remoteStr2, far *remoteStr3;
unsigned int remoteLen;
extern "C"
{
int CALLBACK matchCount( char far *, char far *, char far *, char far *, int );
}
int CALLBACK LibMain( HINSTANCE, WORD, WORD, LPSTR )
{
return 1;
}
int CALLBACK WEP ( int )
{
return 1;
}
int CALLBACK _export matchCount ( char far *attrStrP, char far *colorStrP, char far *attrP, char far *colorP, int maxLen )
{
int count = 0;
char attr, color;
attr = *attrP;
color = *colorP;
while ( (maxLen-- > 0) && (*(attrStrP++) == attr) && (*(colorStrP++) == color) )
{
count++;
}
return ( count );
}