aboutsummaryrefslogtreecommitdiff
path: root/contrib/hstore/crc32.h
blob: d2d6c8bd9a65e19507de8bd397dc3436328ad07b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
 * $PostgreSQL: pgsql/contrib/hstore/crc32.h,v 1.2 2008/05/17 01:28:19 adunstan Exp $ 
 */
#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