home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / protocol / misc / 907 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  972 b 

  1. Xref: sparky comp.protocols.misc:907 alt.sources.wanted:1949
  2. Newsgroups: comp.protocols.misc,alt.sources.wanted
  3. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!agate!dog.ee.lbl.gov!news!manta!psm
  4. From: psm@nosc.mil (Scot Mcintosh)
  5. Subject: Re: CRC-16: how do I do it?
  6. Message-ID: <1992Dec30.162806.24699@nosc.mil>
  7. Organization: Naval Ocean Systems Center, San Diego
  8. References: <2185@mefos.se>
  9. Date: Wed, 30 Dec 1992 16:28:06 GMT
  10. Lines: 16
  11.  
  12. In article <2185@mefos.se> pam@mefos.se (PA Monwall) writes:
  13. >Hi
  14. >How do I calculate (in C) a CRC-16 checksum for data stored in a char-
  15. >buffer using the polynom x**16+x**15+x**2+1??
  16. >
  17.  
  18. Check out file CRC-C.ARC located on wuarchive.wustl.edu in
  19. directory mirrors/msdos/c. It allegedly is an implementation of
  20. CRC-16 written in the C language, and uses table lookup for speed.
  21. Includes the source code and a DOC file.
  22.  
  23. -- 
  24. ----
  25. Scot McIntosh
  26. Internet: psm%helios.nosc.mil@nosc.mil
  27. UUCP:     I have no idea
  28.