]> git.llucax.com Git - z.facultad/75.06/jacu.git/blob - src/statichuff/statichuff.h
Taken care of mem leaks
[z.facultad/75.06/jacu.git] / src / statichuff / statichuff.h
1
2 #ifndef _STATICHUFF_H_
3 #define _STATICHUFF_H_
4
5 #include <stdio.h>
6 #include <unistd.h>
7
8 typedef unsigned long int t_freq;
9
10 typedef struct t_freqnode {
11         unsigned short int symbol;
12         t_freq freq;
13         struct t_freqnode *lchild;
14         struct t_freqnode *rchild;
15 } SHUFFNODE;
16
17 typedef struct t_code {
18         unsigned long int code;
19         unsigned char codelength;
20 } SHUFFCODE;
21
22 int shuff_decode_file(char *inputfile, char *outputfile);
23 int shuff_encode_file(char *inputfile, char *outputfile);
24
25 #endif /* _STATICHUFF_H_ */