Removed findings after code review; removed memset for arrays, let the compiler do...
[profile/ivi/persistence-client-library.git] / include_protected / crc32.h
1 #ifndef CRC32_H
2 #define CRC32_H
3
4 /******************************************************************************
5  * Project         Persistency
6  * (c) copyright   2012
7  * Company         XS Embedded GmbH
8  *****************************************************************************/
9 /******************************************************************************
10  * Copyright
11  *
12  * This Source Code Form is subject to the terms of the
13  * Mozilla Public License, v. 2.0. If a  copy of the MPL was not distributed
14  * with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
15 ******************************************************************************/
16  /**
17  * @file           crc32.h
18  * @ingroup        Persistence client library
19  * @author         Ingo Huerner
20  * @brief          Header of crc32 checksum generation
21  * @see            
22  */
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28
29 #define  PERSIST_CLIENT_LIBRARY_INTERFACE_VERSION   (0x01000000U)
30
31 #include <string.h>
32
33 const unsigned int crc32(unsigned int crc, const unsigned char *buf, size_t theSize);
34
35
36 #ifdef __cplusplus
37 }
38 #endif
39
40 #endif /* CRC32_H */