Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/keivan-sf/lzw
- Owner: Keivan-sf
- Created: 2024-07-29T17:49:52.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-11-11T18:16:50.000Z (about 2 months ago)
- Last Synced: 2024-11-11T19:25:31.089Z (about 2 months ago)
- Language: C
- Homepage:
- Size: 67.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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
```