Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 662 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 662 Bytes

LZW

LZW data compression implementation in C compatible with ncompress.

This is a hobby project under development

How to use

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

Tests

To run unit tests you can run

make unit-test