Hall-D Software
alpha
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
crc.h
Go to the documentation of this file.
1
/*
2
* crc.h
3
*
4
*
5
* CRC computation routines derived from Chuck Forsberg's Zmodem
6
* implementation for UNIX. It is public domain, isn't it?
7
*
8
* -rev 04-16-87
9
* This file contains Unix specific code for setting terminal modes,
10
* very little is specific to ZMODEM or YMODEM per se (that code is in
11
* sz.c and rz.c). The CRC-16 routines used by XMODEM, YMODEM, and ZMODEM
12
* are also in this file, a fast table driven macro version
13
*
14
*/
15
16
#ifndef _CRCH_INCLUDED
17
#define _CRCH_INCLUDED
18
19
#define CRC16INIT 0
20
#define CRC32INIT (0xFFFFFFFFL)
21
22
#define CRC16MAGIC (0xFFFF)
23
#define CRC32MAGIC (0xDEBB20E3L)
24
25
#include <
ntypes.h
>
26
27
uint32
data_crc
(
const
void
*data,
int
length);
28
29
#endif
30
/* End of crc.h */
data_crc
uint32 data_crc(const void *data, int length)
ntypes.h
uint32
unsigned int uint32
Definition:
ntypes.h:50
include
crc.h
Generated on Fri Jul 26 2019 14:00:21 for Hall-D Software by
1.8.5