1
0

crc32.h 420 B

1234567891011
  1. /* Simple public domain implementation of the standard CRC32 checksum.
  2. * Outputs the checksum for each file given as a command line argument.
  3. * Invalid file names and files that cause errors are silently skipped.
  4. * The program reads from stdin if it is called with no arguments. */
  5. #pragma once
  6. #include <stdio.h>
  7. #include <stdint.h>
  8. #include <stdlib.h>
  9. void crc32(const void *data, size_t n_bytes, uint32_t* crc);