An example of a file compressor in C