Skip to content
Browse files

minor changes

  • Loading branch information...
1 parent 2f48dbe commit bdf7e086e12e6dfef462e889bbb84089d5dffdd9 @schestowitz committed Aug 7, 2011
Showing with 10 additions and 3 deletions.
  1. BIN testcrc
  2. +10 −3 testcrc.c
View
BIN testcrc
Binary file not shown.
View
13 testcrc.c
@@ -6,20 +6,27 @@
#include<zlib.h>
-#define CHUNK 16384
+#define CHUNK 6
main()
{
int n_tests=2; // number of iterations
int i; // loop index
for (i = 1; i <= n_tests; i++) {
+
+ unsigned char buffer32Q[ CHUNK ] =
+ {
+ 0x01, 0x02,
+ 0x00, 0x04, 0x03, 0x00
+ } ;
+
printf("Test number %d", i);
printf(" of out %d in total\n", n_tests);
+
-
- printf ("Some different radixes: %d %x %o %#x %#o \n", 100, 100, 100, 100, 100);
+ printf ("Some different radixes: %x %x %x %x %x %x\n", buffer32Q[ 0 ], buffer32Q[ 1 ], buffer32Q[ 2 ], buffer32Q[ 3 ], buffer32Q[ 4 ], buffer32Q[ 5 ]);
}
return 0;
}

0 comments on commit bdf7e08

Please sign in to comment.
Something went wrong with that request. Please try again.