This is a document reader for articles from FRED magazine. It decompresses documents in the Entropy Document Reader format, by Simon Cooke. This is probably the sloppiest code I’ve ever written, but I’ll probably never need to run it again, so there doesn’t seem to be much point in cleaning it up.
Here’s the code, written in ANSI C. You may need the file format documentation to make sense of it.
Minor/possible bugs: if a token beyond the end of the tokens array is used in the document, it’ll probably crash. I’m not sure whether the "Coupe" tokens should have an acute "é". The detection of jyn files needs improving. (Currently, if you specify only one filename, it assumes it’s a jyn file.)
As always, please send me any bug fixes or improvements that you make, and I will include them.
Stuart Brady