Help for this page
#include <stdio.h> #include <stdlib.h> ... mCrc = crc(s, sizeof(s), mLookup, &mMask); printf("CRC for '%s' is 0x%08x\n", s, mCrc); }
use strict; use warnings; ... $ctx->add($string); print "CRC for '$string' is 0x" . $ctx->hexdigest . "\n";
gcc try.c; ./a.out CRC for 'Hello Word. How are you?' is 0x17ccc647 perl try.pl CRC for 'Hello Word. How are you?' is 0x8487fb61