nlGetCRC16, nlGetCRC32

get the CRC value for a buffer

C Specification

NLushort nlGetCRC16(NLubyte *data, NLint length)

NLulong nlGetCRC32(NLubyte *data, NLint length)

Parameters

data

[in]Specifies the data buffer.
length

[in]Specifies the length of the data buffer.

Description

nlGetCRC16 and nlGetCRC32 calculate the CRC value for data. nlGetCRC16 calculates a CCITT CRC, and nlGetCRC32 calculates an ANSI X3.66 CRC.

Return values

nlGetCRC16 and nlGetCRC32 return the 16 bit or 32 bit CRC value for data.

Error codes

none

See also

none


Back to the HawkNL index page


Go directly to the main HawkNL page at Hawk Software

© 2000-2002 Phil Frisbie.

Valid XHTML 1.0!