diff options
Diffstat (limited to 'prototype/fw/src/crc32_test.c')
-rw-r--r-- | prototype/fw/src/crc32_test.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/prototype/fw/src/crc32_test.c b/prototype/fw/src/crc32_test.c deleted file mode 100644 index e23bb37..0000000 --- a/prototype/fw/src/crc32_test.c +++ /dev/null @@ -1,20 +0,0 @@ - -#include <stdio.h> - -#include "crc32.h" - -int main(void) { - crc32_t state = crc32_reset(); - - do { - char c; - if (fread(&c, 1, 1, stdin) != 1) - break; - - state = crc32_update(state, (uint8_t)c); - } while(23); - - state = crc32_finalize(state); - printf("%08x\n", state); - return 0; -} |