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