Files
libretro-atari800/atari800/src/crc32.h
T
2015-12-14 14:00:35 +01:00

17 lines
408 B
C

#ifndef CRC32_H_
#define CRC32_H_
#include <stdio.h>
#include "atari.h"
/* Compute CRC32 of LEN bytes from BUF. CRC should be set initially to
0xffffffff. */
ULONG CRC32_Update(ULONG crc, UBYTE const *buf, unsigned int len);
/* Compute CRC32 of a stream F and store it at *RESULT. Return non-zero on
success or 0 on read error. */
int CRC32_FromFile(FILE *f, ULONG *result);
#endif /* CRC32_H_ */