Skip to content
Snippets Groups Projects
Commit 695e901d authored by Bernard Blackham's avatar Bernard Blackham
Browse files

Pad out with zeros.

parent df0dcb9b
No related merge requests found
...@@ -36,6 +36,6 @@ int main(int argc, char** argv) { ...@@ -36,6 +36,6 @@ int main(int argc, char** argv) {
crc = docrc(((char*)&msgid), 1, 0, crc); crc = docrc(((char*)&msgid), 1, 0, crc);
crc = docrc(password, strlen(password), 0, crc); crc = docrc(password, strlen(password), 0, crc);
crc = docrc(message, strlen(message), 0, crc); crc = docrc(message, strlen(message), 0, crc);
printf("CRC is 0x%x\n", crc); printf("%04x\n", crc);
return 0; return 0;
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment