Files
ioccc/1988/litmaath
Landon Curt Noll 658669a73a improve .gitignore files, fix index.html links, sync CNAME
fix experimental web site links in experimental index.html

sync CNAME with https://github.com/ioccc-src/winner/blob/master/CNAME

improve .gitignore files

Added to each .gitignore file, comments on how to sort.

Put into winner .gitignore files, ignore *.dSYM files.

Put into winner .gitignore files, ignore indent.c,
indent.o and indent files.  This is done so that the
winner directory can more self contained.

We did not put into winner .gitignore files, however,
excludes of .-files as found in the top level .gitignore file.
As .-files are not allowed by mkiocccentry, the top level
.gitignore file remains sufficient.

Added to year level .gitignore files, excludes of
mkentry or iocccsize files as needed.

Sorted (via sort -d -u) all .gitignore file.
2023-12-08 04:06:44 -08:00
..
2023-12-05 22:51:27 -08:00
2023-11-01 00:47:43 -07:00
2022-09-18 23:37:49 -07:00
2023-07-06 21:49:38 -07:00

To build:

make

To use:

./litmaath some text

There is an alternate version provided. See the Alternate code section below.

Try:

./litmaath eschew obfuscation

Alternate code:

This alternate code, added to help understand the entry and for fun, is code that we suggested at the time of the entry publication but which we never put in a file.

Alternate build:

make alt

Use litmaath.alt as you would litmaath above.

Alternate try:

./litmaath.alt six was afraid of seven because seven eight nine

Judges' remarks:

Note the unusual structure:

while (<condition>)
	 ;

Did you notice that the body is empty?

Furthermore, it's interesting to note that only two variables are used to achieve everything.

The best one can do to understand how the program works is to give it two small strings as arguments, and follow the program closely. One could make the body of the while loop an fprintf with interesting variables like:

fprintf(stderr,
     "argv=%lo *argv=%lo **argv=%c argv[1]=%lo *argv[1]=%c argc=%d\n",
     (long) argv, (long) *argv, *argv && **argv ? **argv : '@',
     (long) argv[1], argv[1] && *argv[1] ? *argv[1] : '@', argc);

... which is what the alternate code is.

Author's remarks:

No remarks were provided by the author.

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/