FastCRC Library API


unsigned long SL_FCRCCALL SL_FCRC16C_Calculate( const void* pSrc, unsigned int nSrcLength );

Return value

The checksum.



    [in] Pointer to the continuous memory block for which to calculate the checksum.


    [in] Length in bytes of the memory block. 


Calculates the checksum for the memory block pointed by pSrc.


#include <string.h>
#include <FastCRC.h>

int main()
    char string[] = "Test String";
    unsigned long checksum;

    /*****Calculate the checksum********************************/

    checksum = SL_FCRC16C_Calculate( string, strlen( string ) );

    /*****Use the checksum**************************************/

    return 0;



CRC16C API Overview   |   CRC16C API_Functions   |   Useful Links   |   HashCalc


See Also    SL_FCRC16C_CalculateStr, SL_FCRC16C_CalculateFile, SL_FCRC_ConvertToHex16



Send Feedback to SlavaSoft Inc. Tell a friend about FastCRC Library