Category : Files from Magazines
Archive   : PCTV1N3.ZIP
Filename : ANTITEST.C

 
Output of file : ANTITEST.C contained in archive : PCTV1N3.ZIP
/**************************************************************************
* Listing 3 - ANTITEST.C Test driver for anti_venom function.
*
* Written by Kevin D. Weeks 10-8-89
* Released to the Public Domain.
*
* Compile using small memory model and link to ANTIVENM.OBJ.
*/
#include
#define BUF_SIZE 1024

main()
{
int ret_code;
char *buffer;

buffer = (char *)malloc(BUF_SIZE); /* allocate an input buffer */
ret_code = anti_venom(BUF_SIZE,buffer); /* test ourselves */
if (ret_code == -1)
printf("Virus detected\n");
else
if (ret_code == 1)
printf("Execution error\n");
else
printf("OK\n");
}


  3 Responses to “Category : Files from Magazines
Archive   : PCTV1N3.ZIP
Filename : ANTITEST.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/