diff options
Diffstat (limited to 'contrib/ltree/crc32.h')
| -rw-r--r-- | contrib/ltree/crc32.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/ltree/crc32.h b/contrib/ltree/crc32.h new file mode 100644 index 0000000000..97254a4a90 --- /dev/null +++ b/contrib/ltree/crc32.h @@ -0,0 +1,10 @@ +#ifndef _CRC32_H +#define _CRC32_H + +/* Returns crc32 of data block */ +extern unsigned int crc32_sz(char *buf, int size); + +/* Returns crc32 of null-terminated string */ +#define crc32(buf) crc32_sz((buf),strlen(buf)) + +#endif |
