Files
ioccc/1990/scjones
Landon Curt Noll 0833c3e4f0 fix how bin tools sort
We set LC_ALL=C when sorting in a bin tool.  This was done
to make the result of using `sort(1)` consistent.

Improved how the Primary files and Secondary files are
sorted by `bin/output-index-inventory.sh` to sort
with "-u -k 1n -k 3.2d".

The above will change `index.html` files for all entries.

Changed `bin/chk-entry.sh` VERSION from "1.1.2 2024-03-17"
to "1.1.3 2024-03-18".

Changed `bin/gen-authors.sh` VERSION from "1.3 2024-03-04"
to "1.3.1 2024-03-18".

Changed `bin/gen-location.sh` VERSION from "1.1 2024-03-04"
to "1.1.1 2024-03-18".

Changed `bin/gen-sitemap.sh` VERSION from "1.3 2024-03-16"
to "1.3.1 2024-03-18".

Changed `bin/output-index-inventory.sh` VERSION from "1.2 2024-02-27"
to "1.2.1 2024-03-18".

Changed `bin/pandoc-wrapper.sh` VERSION from "1.5 2024-03-18"
to "1.5.1 2024-03-18".

Changed `bin/sort.gitignore.sh` VERSION from "1.1.1 2024-02-23"
to "1.1.2 2024-03-18".

Changed `bin/tar-all.sh` VERSION from "1.1 2024-02-27"
to "1.1.1 2024-03-18".

Changed `bin/tar-year.sh` VERSION from "1.1 2024-02-27"
to "1.1.1 2024-03-18".

Performed `make www` to update all entry `index.html` files.
2024-03-18 02:43:03 -07:00
..
2024-02-27 23:21:32 -08:00
2024-03-18 02:43:03 -07:00
2024-03-13 00:38:46 -07:00
2024-01-12 09:19:07 -08:00
2022-09-18 23:37:49 -07:00
2023-07-06 21:49:38 -07:00

To build:

make all

To use:

./scjones

Try:

./try.sh

Judges' remarks:

The addition of trigraphs has made it easier to make programs hard to read. It was a dark and stormy night for C when the ANSI C committee added trigraphs to the standard. Too bad that they didn't just simply require a more reasonable ISO character set.

The Author sent us this note after he was informed that he won:

Although I am quite grateful for the "ANSI Committee's Worst Abuse of C" title (were you aware that I am a member of the committee or is the double meaning unintentional?), I was really hoping for something more along the lines of "Closest Resemblance to Line Noise." :-)

... it was unintentional.

Author's remarks:

Since this year's contest is dedicated to ANSI C, here is a strictly conforming entry. In accordance with the ANSI definition of a strictly conforming program it does not produce output dependent on any unspecified, undefined, or implementation defined behavior, and it does not exceed any of the minimum implementation limits. It adheres to all of the syntactic and semantic constraints of the standard: it #includes the relevant headers for the functions it uses, and it uses the EXIT_SUCCESS and EXIT_FAILURE macros to return a correct success/fail status to the invoking program. It also uses trigraphs for characters which are not in the Invariant Code Set of ISO 646:1983, so it will be portable to machines with deficient (from C's standpoint) character sets. In short, it should be very widely portable. As an extra added attraction, all of the lines are under 72 characters long, which would allow for sequence numbers to be punched in columns 73-80 :-).

This file is Copyright (c) 2023 by Landon Curt Noll. All Rights Reserved. You are free to share and adapt this file under the terms of this license:

Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)

For more information, see: https://creativecommons.org/licenses/by-sa/4.0/