25 lines
375 B
C
25 lines
375 B
C
#ifndef COMPRESSOR_H
|
|
#define COMPRESSOR_H
|
|
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <stdint.h>
|
|
|
|
|
|
#define SYMBOLS 256
|
|
|
|
|
|
typedef struct HuffmanNode {
|
|
unsigned char symbol;
|
|
uint32_t freq;
|
|
struct HuffmanNode *left, *right;
|
|
} HuffmanNode;
|
|
|
|
|
|
int compress_file(const char *infile, const char *outfile);
|
|
int decompress_file(const char *infile, const char *outfile);
|
|
|
|
|
|
#endif
|