home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 May / cica_0595_4.zip / cica_0595_4 / UTIL / WSPRTERM / WSPRTERM.CPP < prev    next >
C/C++ Source or Header  |  1993-12-28  |  789b  |  38 lines

  1. #include <windows.h>
  2. #include <ctype.h>
  3.  
  4. char far *remoteStr1, far *remoteStr2, far *remoteStr3;
  5. unsigned int remoteLen;
  6.  
  7. extern "C"
  8.        {
  9.        int CALLBACK matchCount( char far *, char far *, char far *, char far *, int );
  10.        }
  11.  
  12. int CALLBACK LibMain( HINSTANCE, WORD, WORD, LPSTR )
  13.     {
  14.     return 1;
  15.     }
  16.  
  17. int CALLBACK WEP ( int )
  18.     {
  19.     return 1;
  20.     }
  21.  
  22.  
  23. int CALLBACK _export matchCount ( char far *attrStrP, char far *colorStrP, char far *attrP, char far *colorP, int maxLen )
  24.      {
  25.      int count = 0;
  26.      char attr, color;
  27.  
  28.      attr = *attrP;
  29.      color = *colorP;
  30.      while ( (maxLen-- > 0) && (*(attrStrP++) == attr) && (*(colorStrP++) == color) )
  31.            {
  32.            count++;
  33.            }
  34.      return ( count );
  35.      }
  36.  
  37.  
  38.