2004-10-12 02:44:47 +00:00
|
|
|
/* This CRC code was taken from: http://www.axlradius.com/freestuff/crc2.c
|
|
|
|
|
|
|
|
(It is presumably in the public domain. Other files under /freestuff/ are...)
|
|
|
|
|
|
|
|
( Added a #include for this .h file. Otherwise, crc32 is a verbatim copy of the file from the internet.)
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
Usage:
|
2004-10-17 02:17:00 +00:00
|
|
|
unsigned int crc = -1L
|
2004-10-12 02:44:47 +00:00
|
|
|
crc = crc32(buffer, length, crc)
|
|
|
|
*/
|
|
|
|
|
2007-12-06 21:52:37 +00:00
|
|
|
unsigned int stasis_crc32(const void *buffer, unsigned int count, unsigned int crc);
|