summaryrefslogtreecommitdiffstats
path: root/contrib/ltree/crc32.h
blob: 958812214df7da063d4a41f45ead9fbd0ea6f424 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef _CRC32_H
#define _CRC32_H

/* contrib/ltree/crc32.h */

/* Returns crc32 of data block */
extern unsigned int ltree_crc32_sz(const char *buf, int size);

/* Returns crc32 of null-terminated string */
#define crc32(buf) ltree_crc32_sz((buf),strlen(buf))

#endif