2002-07-30 18:40:34 +02:00
|
|
|
#ifndef _CRC32_H
|
|
|
|
#define _CRC32_H
|
|
|
|
|
2010-09-20 22:08:53 +02:00
|
|
|
/* contrib/ltree/crc32.h */
|
2006-03-11 05:38:42 +01:00
|
|
|
|
2002-07-30 18:40:34 +02:00
|
|
|
/* Returns crc32 of data block */
|
2002-08-10 22:46:24 +02:00
|
|
|
extern unsigned int ltree_crc32_sz(char *buf, int size);
|
2002-07-30 18:40:34 +02:00
|
|
|
|
|
|
|
/* Returns crc32 of null-terminated string */
|
2002-08-10 22:46:24 +02:00
|
|
|
#define crc32(buf) ltree_crc32_sz((buf),strlen(buf))
|
2002-07-30 18:40:34 +02:00
|
|
|
|
|
|
|
#endif
|