crc.h 482 B

12345678910111213141516171819202122
  1. /* $Id$*/
  2. #ifndef _CRC_H_
  3. #define _CRC_H_
  4. #include "str.h"
  5. #define CRC16_LEN 4
  6. extern unsigned long int crc_32_tab[];
  7. extern unsigned short int ccitt_tab[];
  8. extern unsigned short int crc_16_tab[];
  9. unsigned short crcitt_string_ex( char *s, int len, register unsigned short ccitt);
  10. unsigned short crcitt_string( char *s, int len );
  11. void crcitt_string_array( char *dst, str src[], int size );
  12. void crc32_uint (str *source_string, unsigned int *hash_ret);
  13. #endif /* _CRC_H_ */