2001-10-13 01:19:09 +02:00
|
|
|
#ifndef _CRC32_H
|
|
|
|
#define _CRC32_H
|
|
|
|
|
|
|
|
/* Returns crc32 of data block */
|
2001-10-25 07:50:21 +02:00
|
|
|
extern unsigned int crc32_sz(char *buf, int size);
|
2001-10-13 01:19:09 +02:00
|
|
|
|
|
|
|
/* Returns crc32 of null-terminated string */
|
|
|
|
#define crc32(buf) crc32_sz((buf),strlen(buf))
|
2001-10-28 07:26:15 +01:00
|
|
|
|
2001-10-13 01:19:09 +02:00
|
|
|
#endif
|