testcrc.c
来自「32-bit 循环冗余校验的 C和PASCAL 应用程序」· C语言 代码 · 共 35 行
C
35 行
/*
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);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?