Home
Highly Reusable Software By activity User Interface Text Strings Math Processing
Stored Data
Communications
Hard World File System
|
#License - #Source code - #Example Use -
#include <librock/procede.h> librock_uint32_t librock_CRC32( librock_uint32_t crc, /* Before first call set = ~0 */ const void *Buffer, unsigned int cbBuffer );
Typical use is
#ifdef librock_TYPICAL_USE_CRC32 #include <librock/target/types.c> librock_uint32_t crccomp = 0xffffffffL; char *buf = "this is a test"; crccomp = librock_CRC32(crccomp,buf,strlen(buf)); printf("%08lx\n", (crccomp ^ 0xFFFFFFFFL)); #endif
// librock_PRIVATE BuildCRCTable() // librock_PRIVATE unsigned long CRCTable[256] // librock_PRIVATE char CRCTableBuilt
Copyright 1998-2002 Forrest J. Cavalier III, http://www.mibsoftware.com Licensed under BSD-ish license, NO WARRANTY. Copies must retain this block. License text in <librock/license/librock.txt> librock_LIDESC_HC=12440211096131f5976d36be0cddca4cd9152e45
librock_CRC32 passed tests in tcrc32 (Unix/Linux/BSD: 2002/08/08 sys=FreeBSD using gcc)
librock_CRC32 passed tests in tcrc32 (WIN32: 2002/08/08 sys=NT 4.0 using MSVC)
Verbatim copying and distribution of this generated page is permitted in any medium provided that no changes are made.
(The source of this manual page may be covered by a more permissive license which allows modifications.)
Want to help? We welcome comments, patches. -- Need help? Request paid support.