Example to show the usage of compute_partial API from CRC class.

Files at this revision

API Documentation at this revision

Comitter:
Maciej Bocianski
Date:
Wed Oct 24 08:42:48 2018 +0200
Parent:
2:834c44916a38
Commit message:
fix compilation warnings

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Mar 23 16:22:33 2018 +0000
+++ b/main.cpp	Wed Oct 24 08:42:48 2018 +0200
@@ -11,7 +11,7 @@
     ct.compute_partial((void *)&test[4], 5, &crc);
     ct.compute_partial_stop(&crc);
     
-    printf("The CRC of 0x%x \"123456789\" is \"0xCBF43926\" Result: 0x%x\n", 
+    printf("The CRC of 0x%lx \"123456789\" is \"0xCBF43926\" Result: 0x%lx\n", 
                             ct.get_polynomial(), crc);
     
     return 0;