Loading files
88cf441bbThis file is pinned to the selected release. Download the original to open it in your design tool.
/* Simple public domain implementation of the standard CRC32 checksum.
* Outputs the checksum for each file given as a command line argument.
* Invalid file names and files that cause errors are silently skipped.
* The program reads from stdin if it is called with no arguments. */
#pragma once
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
void crc32(const void *data, size_t n_bytes, uint32_t* crc);