Crc32

This is a discussion on Crc32 within the C Programming forums, part of the General Programming Boards category; hi just wanted to know what CRC32 is???? how to i calculate CRC32 of numbers using C??...

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    134

    Crc32

    hi
    just wanted to know what CRC32 is????
    how to i calculate CRC32 of numbers using C??

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    http://www.snippets.org/snippets/portable/CRC+TXT.php3

    [edit]
    Someone's question got me Googling and I ran across another good site that I hadn't bookmarked previously:
    Snippets of C Code (not the Snippets)

    On this page was a shorter CRC32 code example.
    [/edit]
    Last edited by Dave_Sinkula; 05-31-2003 at 07:08 PM.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #3
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,161
    In other words, it's a 32 bit value that is generated by shoving each byte in a file (for example) into an algorithm to get a unique number for the the file.

    It can be as simple as adding all the bytes together and ignoring overflow to complicated computations that do very weird things to the bytes.
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Crc32?
    By RobotGymnast in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 04-17-2008, 09:23 AM
  2. crc32
    By brietje698 in forum C++ Programming
    Replies: 24
    Last Post: 07-31-2007, 07:19 AM
  3. Critique / Help me make this program run faster.
    By Mastadex in forum C++ Programming
    Replies: 10
    Last Post: 06-26-2004, 11:58 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21