Files
ioccc/1987/heckbert
Landon Curt Noll d981aa2a04 revert non-canonical JSON changes from a previous commit
The PR #2662 introduced TAB characters into entry `.entry.json` files
and mal-formatted `author_handle` JSON members.

To restore canonical JSON formatting, we did:

```sh
find [12][90][89012][0-9] -name .entry.json -print | xargs -n 1 bin/jfmt-wrapper.sh -v 1
```

BTW: We have written a tool, currently untested, to do this.  We plan to also
     add a new fix JSON format rule to the top level `Makefile`.

Performed `make www` to accomplish the above and to test under macOS.
2024-08-29 19:03:28 -07:00
..
2023-07-06 21:49:38 -07:00
2024-08-21 23:42:28 -07:00

To build:

    make all

On System V systems, we had to compile with -Dindex=strchr. To compile on a 16 bit machine, change 300000 to 30000.

To use:

    ./heckbert col < file

where col is the number of columns to fold at and file is the file to fold.

Try:

    ./try.sh

Judges' remarks:

Folding at the wrong length may be equivalent to a "Spindle or Mutilate" operation. For example:

    ./heckbert 40 < heckbert.c > ph.c ; make ph ; ./ph 20 < heckbert.c > bar.c ; make bar

Try not to Fold, Spindle or Mutilate files. :-)

The judges used this program to fold up very long lines which the BSD fold(1) was unable to process. This program has been added to the contest tool chest.

Author's remarks:

No remarks were provided by the author.