File: crc.h

package info (click to toggle)
vic 2.8ucl4-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 5,864 kB
  • ctags: 9,033
  • sloc: ansic: 56,989; cpp: 44,560; tcl: 5,550; sh: 1,382; perl: 1,329; makefile: 357
file content (31 lines) | stat: -rw-r--r-- 839 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef CRC_H
#define CRC_H
/*
 * $Header: /cs/research/mice/starship/src/local/CVS_repository/vic/rcap-include/crc.h,v 1.1.1.1 1998/02/18 18:03:59 ucacsva Exp $
 * 
 * crc.h
 * $Log: crc.h,v $
 * Revision 1.1.1.1  1998/02/18 18:03:59  ucacsva
 * original vic-2.8 sources for Rm209
 *
 * Revision 1.5  1992/07/29  20:47:14  bmah
 * ushort->u_short for SunOS compatability.
 *
 * Revision 1.4  1992/05/12  20:53:49  bmah
 * Split...daemon and library files are now separate.
 *
 * Revision 1.3  1992/01/18  22:42:44  bmah
 * UNIX-ized dtaa types.
 *
 * Revision 1.2  1991/12/15  23:04:40  bmah
 * Headers reflect 16-bit CRCs instead of 32- and 31-bit.
 *
 */
#include <sys/types.h>

typedef u_short crc_table[256];

void CrcTable16(u_short poly, crc_table table);
u_short CrcCompute16(u_char *data, int len, crc_table table);

#endif CRC_H