Minor fixes to 2018/anderson/README.md

Move author information to first column.

Format fixes / adjustments.

Add link to prog.c and prog.alt.c when referred to in normal text.

Typo fix (well not really a typo: c99 etc. becomes C99 and so on).
This commit is contained in:
Cody Boone Ferguson committed 2023-04-01 06:51:53 -07:00
1 parent 48d3653ff8
commit 20ea1eac81
1 file changed
+6 -7
+6 -7
View File
@@ -24,12 +24,11 @@ make
## Alternate code: ## Alternate code:
An alternate version of this entry, `prog.alt.c`, is provided. An alternate version of this entry, [prog.alt.c](prog.alt.c), is provided.
Compare `prog.c` and `prog.alt.c` and find out why we had to modify Compare [prog.c](prog.c) and [prog.alt.c](prog.alt.c) and find out why we had to
the entry, and what confused the author (see the author's remarks). modify the entry, and what confused the author (see the author's remarks). No,
No, it was not the shape of the Roman V that we, or the compiler, it was not the shape of the Roman V that we, or the compiler, didn't like.
didn't like.
To compile this alternate version: To compile this alternate version:
@@ -51,11 +50,11 @@ With this entry, you won't need to turn your monitor [upside down](http://en.wik
cc -Wall -Wextra -Wpedantic -O3 -std=c11 prog.c -o prog cc -Wall -Wextra -Wpedantic -O3 -std=c11 prog.c -o prog
``` ```
Also works with a standard of c99, but c90/c89 will not compile due to Also works with a standard of C99, but C90/C89 will not compile due to
for loop initial declarations, along with additional warnings about for loop initial declarations, along with additional warnings about
variable length arrays and lack of a return statement. variable length arrays and lack of a return statement.
### Additional info ### Additional info:
This small program, when given text on stdin, will produce a pattern of This small program, when given text on stdin, will produce a pattern of
squiggly lines. This pattern is deterministic, and it shouldn't be too squiggly lines. This pattern is deterministic, and it shouldn't be too