Add 'r' raw command to unpack.

r dumps the raw format as seen in the file to stdout as readable text.
This commit is contained in:
James Bowes 2012-09-06 11:12:54 -03:00
parent e0245db498
commit 8d59720195
3 changed files with 82 additions and 10 deletions

View file

@ -1,3 +1,4 @@
#include <stdbool.h>
struct huffman_node {
int weight;
@ -9,4 +10,4 @@ struct huffman_node {
struct huffman_node *huffman_build_tree(void **values, int count);
void *huffman_lookup (struct huffman_node *tree, unsigned char *bits,
int *bits_read);
int *bits_read, bool print);