LZW data compression implementation in C compatible with ncompress.
This is a hobby project under development
To build from source you can run
make
then run the executable to compress input.txt
and write the compressed data to compressed.Z
:
cat ./input.txt | ./lzw > ./compressed.Z
compressed.Z
can now be decompressed using ncompress. For example:
cat compressed.Z | compress -d
To run unit tests you can run
make unit-test