… | |
… | |
13 | extern "C" { |
13 | extern "C" { |
14 | #endif |
14 | #endif |
15 | |
15 | |
16 | typedef unsigned long crc32_t; |
16 | typedef unsigned long crc32_t; |
17 | #define Z_NULL 0 |
17 | #define Z_NULL 0 |
|
|
18 | |
|
|
19 | #define crc32 uulib_crc32 |
18 | |
20 | |
19 | crc32_t crc32 _ANSI_ARGS_((crc32_t crc, const unsigned char *buf, unsigned int len)); |
21 | crc32_t crc32 _ANSI_ARGS_((crc32_t crc, const unsigned char *buf, unsigned int len)); |
20 | /* |
22 | /* |
21 | Update a running crc with the bytes buf[0..len-1] and return the updated |
23 | Update a running crc with the bytes buf[0..len-1] and return the updated |
22 | crc. If buf is NULL, this function returns the required initial value |
24 | crc. If buf is NULL, this function returns the required initial value |