QuickHash Library API


void SL_HASHCALL SL_ADLER32_CalculateStr( void* pDest, const char* pSrc );



    [out] Pointer to the memory buffer that will receive the checksum.


    [in] Pointer to the null-terminated string for which to calculate the checksum.


Calculates the checksum for the null-terminated string pointed by pSrc. The checksum is retrieved in the memory buffer pointed by pDest. The size of the memory buffer pointed by pDest must be at least SLC_ADLER32_DIGESTSIZE bytes. 

Note. The call SL_ADLER32_CalculateStr( pDest, pSrc );

            is equivalent to the call SL_ADLER32_Calculate( pDest, pSrc, strlen( pSrc ) );


#include <string.h>
#include <QuickHash.h>

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

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

    SL_ADLER32_CalculateStr( checksum, string );

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

    return 0;



ADLER32 API Overview   |   ADLER32 API_Functions   |   Useful Links   |   HashCalc


See Also    SL_ADLER32_CalculateStrHex, SL_ADLER32_Calculate, SL_ADLER32_CalculateHex



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