1 | // Copyright 2023 Peter Dimov. |
---|---|
2 | // Distributed under the Boost Software License, Version 1.0. |
3 | // https://www.boost.org/LICENSE_1_0.txt) |
4 | |
5 | #include <boost/crc.hpp> |
6 | #include <cstring> |
7 | |
8 | int main() |
9 | { |
10 | boost::crc_32_type crc; |
11 | |
12 | char const* data = "Hello, world!"; |
13 | |
14 | crc.process_bytes( buffer: data, byte_count: std::strlen( s: data ) ); |
15 | |
16 | return crc.checksum() == 0xEBE6C6E6u? 0: 1; |
17 | } |
18 |