Sample code for 30+ languages & platforms
Zig

Example: Crypt2.CrcFile method

Demonstrates how to call the CrcFile method.

Chilkat Zig Downloads

Zig
const std = @import("std");
const chilkat = @import("chilkat");

pub fn main() !void {
    const crypt = try chilkat.Crypt2.init();
    defer crypt.deinit();

    const file_path = "c:/temp/someFile.dat";

    const crc32 = crypt.crcFile("crc-32", file_path);
    std.debug.print("{d}\n", .{crc32});

    const crc8 = crypt.crcFile("crc8", file_path);
    std.debug.print("{d}\n", .{crc8});
}