Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/keivan-sf/lzw

LZW implementation in C compatible with linux ncompress program
https://github.com/keivan-sf/lzw

Last synced: about 1 month ago
JSON representation

LZW implementation in C compatible with linux ncompress program

Awesome Lists containing this project

README

        

## LZW

LZW data compression implementation in C compatible with [ncompress](https://vapier.github.io/ncompress/).

This is a hobby project under development

### How to use

To build from source you can run

```bash
make
```

then run the executable to compress `input.txt` and write the compressed data to `compressed.Z`:

```bash
cat ./input.txt | ./lzw > ./compressed.Z
```

`compressed.Z` can now be decompressed using both [ncompress](https://vapier.github.io/ncompress/) and the program itself. For example:

```bash
cat compressed.Z | compress -d
# or
cat compressed.Z | ./lzw -d
```

### Tests

To run unit tests you can run

```bash
make unit-test
```