home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / UTILITY / VIRUS / CVIRPROT.ZIP / TEST.C < prev   
Encoding:
C/C++ Source or Header  |  1989-09-30  |  859 b   |  32 lines

  1.  
  2.  
  3. #include "acheck.c"
  4.  
  5. main (int argc, char *argv[])
  6. {
  7.   char  inchar;
  8.  
  9.   printf("\nThis code really does nothing\n");
  10.   switch (check (argc, argv)) {
  11.     case 0 : break;  /* everything OK */
  12.  
  13.     case 1 : {
  14.                printf (" This file was not patched and cannot be");
  15.                puts (" checked for viruses");
  16.                break;
  17.              }
  18.     case 2 : {
  19.                puts (" User turned off virus protection ");
  20.                break;
  21.              }
  22.     case 3 : {
  23.                puts (" \7\n\nA change has been made to the original code, potentially");
  24.                printf ("by a virus.  Continue running the program? ");
  25.                inchar = getche();
  26.                printf("\n\n");
  27.                if (toupper(inchar) != 'Y')
  28.                 exit(1);
  29.              }
  30.     }
  31.   puts("This does less");
  32. }