I have the following code which aims to implemente a simple LZW based text compression:
int compress(FILE text_file, FILE *output) { char input[20]; short