Fix broken links in 2001/westley

This commit is contained in:
Cody Boone Ferguson committed 2024-04-30 10:07:24 -07:00
1 parent 1c471d8ecd
commit 6ce71468ab
2 files changed
+12 -10

No files matched your search

+6 -5
View File
@@ -47,15 +47,16 @@ For more detailed information see [2001 westley bugs](../../bugs.html#2001_westl
The author stated that one can sort (ignoring leading blanks i.e. `sort -b`) the The author stated that one can sort (ignoring leading blanks i.e. `sort -b`) the
code by line and it will always sort the order of the input. code by line and it will always sort the order of the input.
This is compiled by default; use `westley.sort` as you would `westley` above. This is generated and compiled by default; use `westley.sort` as you would
`westley` above.
## Punch card code: ## Punch card code:
The author also stated that if you just sort the code you'll get the with The author also stated that if you just sort the code (`sort westley.c`) you'll
`sort`) version that just prints out the punch card. The get a version that just prints out the punch card. The `westley.punch.c`
[westley.punch.c](%%REPO_URL%%/2001/westley/westley.punch.c) code is specifically so that Westley can punch (generated by `make` via `sort westley.c`) code is specifically so that Westley
everyone in the face! :-) This is also compiled by default. can punch everyone in the face! :-) This is also compiled by default.
### Punch card try: ### Punch card try:
+6 -5
View File
@@ -419,12 +419,13 @@ code</a> below.</p>
<h2 id="sorted-code">Sorted code:</h2> <h2 id="sorted-code">Sorted code:</h2>
<p>The author stated that one can sort (ignoring leading blanks i.e. <code>sort -b</code>) the <p>The author stated that one can sort (ignoring leading blanks i.e. <code>sort -b</code>) the
code by line and it will always sort the order of the input.</p> code by line and it will always sort the order of the input.</p>
<p>This is compiled by default; use <code>westley.sort</code> as you would <code>westley</code> above.</p> <p>This is generated and compiled by default; use <code>westley.sort</code> as you would
<code>westley</code> above.</p>
<h2 id="punch-card-code">Punch card code:</h2> <h2 id="punch-card-code">Punch card code:</h2>
<p>The author also stated that if you just sort the code you’ll get the with <p>The author also stated that if you just sort the code (<code>sort westley.c</code>) you’ll
<code>sort</code>) version that just prints out the punch card. The get a version that just prints out the punch card. The <code>westley.punch.c</code>
<a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2001/westley/westley.punch.c">westley.punch.c</a> code is specifically so that Westley can punch (generated by <code>make</code> via <code>sort westley.c</code>) code is specifically so that Westley
everyone in the face! :-) This is also compiled by default.</p> can punch everyone in the face! :-) This is also compiled by default.</p>
<h3 id="punch-card-try">Punch card try:</h3> <h3 id="punch-card-try">Punch card try:</h3>
<pre><code> echo &#39;Brian Westley does it again!&#39; | ./westley.punch 2&gt;/dev/null</code></pre> <pre><code> echo &#39;Brian Westley does it again!&#39; | ./westley.punch 2&gt;/dev/null</code></pre>
<h2 id="alternate-code">Alternate code:</h2> <h2 id="alternate-code">Alternate code:</h2>