LZW toy archiver

I plan to write an article which implements a Lempel-Ziv-Welch file archiver.
I need your suggestions and criticism to improve the code. Thanks.

A bit late, but I'd definitely consider making your code tables static.
Thank you for replying.

The version on Pastebin is outdated, and severely broken.
It corrupts the file, and its dictionary will grow until it fills up the entire memory.

The new version is not ready yet. Until it is, this thread is officially dead.
(Unofficially, it was stillborn. Sigh.)
Topic archived. No new replies allowed.