compile with -DTEST to gcrcs16 binary for calculate CRC16 of string for CRC_ constants

This commit is contained in:
Stas Degteff 2010-03-11 13:43:06 +00:00
parent 23684c34a2
commit 7ef0fb5810

View File

@ -71,3 +71,11 @@ word strCrc16c(const char* s, bool __case, word mask) {
// ------------------------------------------------------------------
#ifdef TEST
#include <stdio.h>
int main(int argc, char**argv)
{
for ( int c=1; c<argc; c++ )
printf( "%s CRC16 0x%04X\n", argv[c], strCrc16(argv[c]) );
}
#endif