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 both ncompress and the program itself. For example:
cat compressed.Z | compress -d
# or
cat compressed.Z | ./lzw -d
To run unit tests you can run
make unit-test