home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
PASCAL
/
CRCSET11.ZIP
/
TESTCRC.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-11-16
|
619b
|
35 lines
/*
TESTCRC.C
Kevin Dean
Fairview Mall P.O. Box 55074
1800 Sheppard Avenue East
Willowdale, Ontario
CANADA M2J 5B9
CompuServe ID: 76336,3114
November 16, 1990
This program demonstrates the anti-virus CRC algorithm in VALIDCRC.C.
The response to an invalid CRC is entirely up to the programmer.
This code is public domain.
*/
#include <stdio.h>
#include "viruscrc.h"
/***/
main(void)
{
if (isvalidcrc("TESTCRC.EXE"))
puts("CRC is valid.");
else
puts("*** WARNING *** Program's CRC is invalid.\n"
"This program may have been infected by a virus.");
return (0);
}