Author:
- Name: Paul Heckbert
Location: US - United States of America (United States)
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.
Inventory for 1987/heckbert
Primary files
- heckbert.c - entry source code
- Makefile - entry Makefile
- heckbert.orig.c - original source code
- try.sh - script to try entry
- FoldSpindleMutilate.pdf - cultural history of the punch card
Secondary files
- 1987_heckbert.tar.bz2 - download entry tarball
- README.md - markdown source for this web page
- .entry.json - entry summary and manifest in JSON
- .gitignore - list of files that should not be committed under git
- .path - directory path from top level directory
- index.html - this web page