C code to test generalised compression of text data in a file.