mirror of
https://github.com/fscotto/fsnap.git
synced 2026-11-26 03:09:51 +00:00
- Replace global field variable with output parameter enum Fields *err - Adopt single goto cleanup pattern across all functions - Add errno preservation around cleanup in all modules - Fix early return bug in create.c cleanup block - Add ferror check in crc32() for silent read errors - Document error contracts in all public headers
12 lines
187 B
C
12 lines
187 B
C
#ifndef HASH_H
|
|
#define HASH_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
|
|
/* Compute CRC-32 checksum of stream contents.
|
|
Returns 0 on read error. */
|
|
uint32_t crc32(FILE *stream);
|
|
|
|
#endif
|