postgresql/contrib/ltree/crc32.h

13 lines
263 B
C
Raw Normal View History

#ifndef _CRC32_H
#define _CRC32_H
2010-09-21 04:08:53 +08:00
/* contrib/ltree/crc32.h */
/* Returns crc32 of data block */
extern unsigned int ltree_crc32_sz(char *buf, int size);
/* Returns crc32 of null-terminated string */
#define crc32(buf) ltree_crc32_sz((buf),strlen(buf))
#endif