Help for this page

Select Code to Download


  1. or download this
    #include <stdio.h>
    #include <stdlib.h>
    
    ...
        mCrc = crc(s, sizeof(s), mLookup, &mMask);
        printf("CRC for '%s' is 0x%08x\n", s, mCrc);
    }
    
  2. or download this
    use strict;
    use warnings;
    ...
    $ctx->add($string);
    
    print "CRC for '$string' is 0x" . $ctx->hexdigest . "\n";
    
  3. or download this
    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