home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / live / usr / include / apt-pkg / crc-16.h < prev    next >
C/C++ Source or Header  |  1999-06-21  |  558b  |  22 lines

  1. // -*- mode: cpp; mode: fold -*-
  2. // Description                                /*{{{*/
  3. // $Id: crc-16.h,v 1.1 1999/05/23 22:55:54 jgg Exp $
  4. /* ######################################################################
  5.  
  6.    CRC16 - Compute a 16bit crc very quickly
  7.    
  8.    ##################################################################### */
  9.                                     /*}}}*/
  10. #ifndef APTPKG_CRC16_H
  11. #define APTPKG_CRC16_H
  12.  
  13. #ifdef __GNUG__
  14. #pragma interface "apt-pkg/crc-16.h"
  15. #endif 
  16.  
  17. #define INIT_FCS  0xffff
  18. unsigned short AddCRC16(unsigned short fcs, void const *buf,
  19.             unsigned long len);
  20.  
  21. #endif
  22.