Sample code for 30+ languages & platforms
Unicode C

Example: Crypt2.CrcFile method

Demonstrates how to call the CrcFile method.

Chilkat Unicode C Downloads

Unicode C
#include <C_CkCrypt2W.h>

void ChilkatSample(void)
    {
    HCkCrypt2W crypt;
    const wchar_t *filePath;
    unsigned long crc32;
    unsigned long crc8;

    crypt = CkCrypt2W_Create();

    filePath = L"c:/temp/someFile.dat";

    crc32 = CkCrypt2W_CrcFile(crypt,L"crc-32",filePath);
    wprintf(L"%u\n",crc32);

    crc8 = CkCrypt2W_CrcFile(crypt,L"crc8",filePath);
    wprintf(L"%u\n",crc8);


    CkCrypt2W_Dispose(crypt);

    }