Unicode C
Unicode C
Compute CRC32 of a File
Calculates the CRC32 of a file's contents and returns the 32-bit CRC as a hex string.Chilkat Unicode C Downloads
#include <C_CkZipCrcW.h>
void ChilkatSample(void)
{
HCkZipCrcW zipCrc;
int crc;
const wchar_t *hexStr;
zipCrc = CkZipCrcW_Create();
// Use a relative for absolute path to the file..
crc = CkZipCrcW_FileCrc(zipCrc,L"qa_data/hamlet.xml");
hexStr = CkZipCrcW_toHex(zipCrc,crc);
wprintf(L"%s\n",hexStr);
CkZipCrcW_Dispose(zipCrc);
}