Format and typo fix 1998/bas2/README.md

This commit is contained in:
Cody Boone Ferguson committed 2023-04-19 09:23:50 -07:00
1 parent ba5c485956
commit 9beb4f7ed6
1 file changed
+17 -13
+17 -13
View File
@@ -1,32 +1,36 @@
# Best Small Program # Best Small Program
Bas de Bakker Bas de Bakker
Pica, Centre for Library Automation Pica, Centre for Library Automation
Statenweg 154 B (home address) Statenweg 154 B (home address)
3039 JN Rotterdam 3039 JN Rotterdam
The Netherlands The Netherlands
## To build: ## To build:
make all ```sh
make all
```
## To run: ## To run:
./bas2 < bas2.c ```sh
./bas2 < bas2.c
```
## Judges' remarks: ## Judges' remarks:
### Questions to ponder: ### Questions to ponder:
Can you determine the relationship between the input and the Can you determine the relationship between the input and the resulting numeric
resulting numeric output? output?
The program was not designed to process files with a certain The program was not designed to process files with a certain octet value, what
octet value, what value is that? value is that?
### Hint and Extra Credit: ### Hint and Extra Credit:
This entry points our a minor flaw in the IOCCC rules that has This entry points out a minor flaw in the IOCCC rules that has
been around since 1992. It processes a certain octet value in been around since 1992. It processes a certain octet value in
a way that differs from a strict reading of one of the a way that differs from a strict reading of one of the
official IOCCC rules. What is the rule and what is the octet official IOCCC rules. What is the rule and what is the octet
@@ -44,7 +48,7 @@ done by matching the bit patterns. Minor obfuscations are:
- Recursive main() instead of 2 loops (over input characters and over bits in - Recursive main() instead of 2 loops (over input characters and over bits in
the character). the character).
- ? and || instead of if statements. - `?` and `||` instead of if statements.
## Copyright and CC BY-SA 4.0 License: ## Copyright and CC BY-SA 4.0 License: