Format fixes in 1996/huffman/README.md
This commit is contained in:
1 parent
65db8ce38d
commit
bedaa23460
1 file changed
+10
-2
+10
-2
@@ -10,20 +10,26 @@
|
|||||||
|
|
||||||
## To build:
|
## To build:
|
||||||
|
|
||||||
|
```sh
|
||||||
make all
|
make all
|
||||||
|
```
|
||||||
|
|
||||||
## To run:
|
## To run:
|
||||||
|
|
||||||
|
```sh
|
||||||
echo 'Huffman Decoding' | ./huffman
|
echo 'Huffman Decoding' | ./huffman
|
||||||
|
```
|
||||||
|
|
||||||
NOTE: this program uses `gets()` so you will likely get a warning when compiling
|
NOTE: this program uses `gets()` so you will likely get a warning when compiling
|
||||||
and/or running on modern systems.
|
and/or running on modern systems.
|
||||||
|
|
||||||
## Try:
|
## Try:
|
||||||
|
|
||||||
|
```sh
|
||||||
echo 'seeing or feeling is believing' | ./huffman
|
echo 'seeing or feeling is believing' | ./huffman
|
||||||
|
echo 'CC OR NOT CC' | ./huffman
|
||||||
echo 'CC OR NOT CC' | ./huffman | ./huffman
|
echo 'CC OR NOT CC' | ./huffman | ./huffman
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Judges' remarks:
|
## Judges' remarks:
|
||||||
@@ -35,7 +41,9 @@ And for a misleading hint, consider who won! :-)
|
|||||||
|
|
||||||
And if you really can't see what is going on, here is an extra spoiler:
|
And if you really can't see what is going on, here is an extra spoiler:
|
||||||
|
|
||||||
|
```sh
|
||||||
./huffman < huffman.c
|
./huffman < huffman.c
|
||||||
|
```
|
||||||
|
|
||||||
This entry was very well received at the IOCCC BOF.
|
This entry was very well received at the IOCCC BOF.
|
||||||
|
|
||||||
@@ -45,7 +53,7 @@ This filter program is really not obfuscated code. It compiles cleanly
|
|||||||
with an ANSI C compiler and comes with user documentation that even a
|
with an ANSI C compiler and comes with user documentation that even a
|
||||||
blind person could read.
|
blind person could read.
|
||||||
|
|
||||||
The program is a bi-directional filter with the output of the program
|
The program is a bidirectional filter with the output of the program
|
||||||
suitable for its input. The output of this program, when used as input,
|
suitable for its input. The output of this program, when used as input,
|
||||||
undoes the original program filtering.
|
undoes the original program filtering.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user