Permalink
Browse files

Switch example.c to hexadecimal output, with a space every 4 bytes.

  • Loading branch information...
1 parent 6231d81 commit b100a38c143f648e6467508255181fb374a50093 @PeterScott committed Oct 1, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 example.c
View
@@ -18,14 +18,14 @@ int main(int argc, char **argv) {
printf("Input: \"%s\"\n", argv[1]);
MurmurHash3_x86_32(argv[1], strlen(argv[1]), seed, hash);
- printf("x86_32: %08u\n", hash[0]);
+ printf("x86_32: %08x\n", hash[0]);
MurmurHash3_x86_128(argv[1], strlen(argv[1]), seed, hash);
- printf("x86_128: %08u%08u%08u%08u\n",
+ printf("x86_128: %08x %08x %08x %08x\n",
hash[0], hash[1], hash[2], hash[3]);
MurmurHash3_x64_128(argv[1], strlen(argv[1]), seed, hash);
- printf("x64_128: %08u%08u%08u%08u\n",
+ printf("x64_128: %08x %08x %08x %08x\n",
hash[0], hash[1], hash[2], hash[3]);
return 0;

0 comments on commit b100a38

Please sign in to comment.