changed
changed

Reputation: 2143

how to calculate crc16 in vc++

I am using visual c++. I need to calculate crc16 16 bit checksum on packet data. Their is one getCRC32 function but i did not found any crc16 bit function.

thanks

Upvotes: 1

Views: 2081

Answers (2)

cpx
cpx

Reputation: 17567

Check out http://www.algorithm-code.com/wiki/CRC16_Algorithm

Upvotes: 0

John Knoeller
John Knoeller

Reputation: 34148

Wikipedia shows several different variants of crc16 http://en.wikipedia.org/wiki/Cyclic_redundancy_check do you have a preference?

Upvotes: 1

Related Questions