<< Previous | Next >>

getcrc

int getcrc( char * dataarray, char count, int accum );

Description

Computes the Cyclic Redundancy Check (CRC), or check sum, for count bytes (maximum 255) of data in buffer. Calls to getcrc can be "concatenated" using accum to compute the CRC for a large buffer.

Parameters

dataarray
Data buffer

count
Number of bytes. Maximum is 255.

accum
Base CRC for the data array.

Return value

CRC value.

Library

MATH.LIB


Dynamic C Functions << Previous | Next >> rabbit.com