[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Function            CRC16tupdate - update a CRC-16 value via tables

  Syntax              unsigned CRC16tupdate(char c, unsigned crc);

  Prototype in        comm.h

  Remarks             updates a CRC-16 value based on the polynomial
                      X16 + X15 + X2 + 1 given c and the original crc
                      value. The CRC-16 value is commonly used by
                      transmission protocols such as Xmodem and Ymodem.

                      This function is table driven.

  Return value        returns an updated CRC-16 value.

  Note                There are two common flavors of 16 bit CRCs, the
                      CRC-16 used by transmission protocols and a
                      CRC-CCIT based on a different polynomial. The two
                      are NOT compatible. I believe the CRC used in .ARC
                      files is of the CRC-16 variety, but will not swear
                      by it until I have verification. The CRC-16 value
                      calculated by TCHK is in proper bit order for use
                      in transfer protocols.

  See also            Checksum_block(), CRC16_block(), CRC16update(),
                      CRC32tupdate()


See Also: Checksum_Block() CRC16update() CRC32tupdate()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson