postgresql/contrib/tsearch2/crc32.h

13 lines
313 B
C
Raw Normal View History

2003-07-21 18:27:44 +08:00
#ifndef _CRC32_H
#define _CRC32_H
/* $PostgreSQL: pgsql/contrib/tsearch2/crc32.h,v 1.2 2006/03/11 04:38:30 momjian Exp $ */
2003-07-21 18:27:44 +08:00
/* 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