IOCCC image by Matt Zucker

The International Obfuscated C Code Contest

1994/ldb - Best one liner

print a random line from stdin

Author:

To build:

    make all

Bugs and (Mis)features:

The current status of this entry is:

STATUS: INABIAF - please DO NOT fix

For more detailed information see 1994/ldb in bugs.html.

To use:

    ./ldb < file

    some_command | ./ldb

Try:

    ./try.sh

Judges’ remarks:

Trigraphs are natural obfuscators. Most C-beautifiers become C-uglifiers because they don’t handle them correctly.

Can you figure out how it prints a given random line (or if the line is longer than 231 characters, part of that line) from stdin?

Author’s remarks:

All input lines must be under 232 characters long. The compiling platform should be ASCII based.

Inventory for 1994/ldb

Primary files

Secondary files


Jump to: top