Files
ioccc/1994/ldb
Cody Boone Ferguson 00e5b58539 Get 1994/ldb to compile
This required some -includes at the compiler line as well as use of the
comma operator as srand() returns void but it was used in || expression.
2023-03-18 06:30:45 -07:00
..
2023-03-18 06:30:45 -07:00
2023-03-18 06:30:45 -07:00
2023-03-18 06:30:45 -07:00

Best One-liner:

Laurion Burchall
Brown University
Unit 4641
Providence RI 02912-4641
USA

To build:

    make all

Cody Boone Ferguson fixed this so it would compile and work with modern compilers. Thank you Cody for your assistance!

NOTE: this entry uses gets() so you will likely get a warning on compilation and/or execution of the program.

To run:

./ldb < file

some_command | ./ldb

NOTE: input lines must be under 232 characters long.

Try:

./ldb < /etc/passwd

printf "The International Obfuscated C Code Contest\n
	Best One-liner\n
	by Laurion Burchall" | ./ldb

Judges' comments

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 from stdin?

Author's comments

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

Copyright (c) 1994, Landon Curt Noll & Larry Bassel. All Rights Reserved. Permission for personal, educational or non-profit use is granted provided this this copyright and notice are included in its entirety and remains unaltered. All other uses must receive prior permission in writing from both Landon Curt Noll and Larry Bassel.