IOCCC image by Matt Zucker

The International Obfuscated C Code Contest

1986/hague - Worst abuse of the C preprocessor

morse code filter written with 'DIT DAH _DIT DIT_DAH'

Author:

To build:

    make all

To use:

    ./hague 2>/dev/null
    # enter some text

Try:

    ./try.sh

Note that you can run the program without feeding it anything and then type in a message and line by line it will show the right output. Notice also how certain characters will print a ?.

Judges’ remarks:

Compile this program and feed ASCII text into standard input. This program is known to pass lint on some systems and abort lint on others.

This program was selected for the 1987 t-shirt collection.

Think Morse code when you ponder this program. Note how the use of similar variables can be obfuscating! The author noted that this program implements the international Morse standard. Now for extra credit, what Morse message does the program spell out?

Author’s remarks:

No remarks were provided by the author.

Inventory for 1986/hague

Primary files

Secondary files


Jump to: top