Winners of the 1986 International Obfuscated C Code Contest
G|ran Uddeborg
uddeborg at chalmers.UUCP
Sat Jun 28 12:01:06 AEST 1986
In article <3656 at nsc.UUCP> chongo at nsc.UUCP writes:
>Worst abuse of the C preprocessor:
>
> Jim Hague
> University of Kent at Canterbury
> Canterbury, Kent
> UK
>
> ..mcvax!ukc!jmh
>-------------------------------------------------------------------------------
>#define DIT (
>#define DAH )
>#define __DAH ++
>#define DITDAH *
>#define DAHDIT for
>#define DIT_DAH malloc
>#define DAH_DIT gets
>#define _DAHDIT char
>_DAHDIT _DAH_[]="ETIANMSURWDKGOHVFaLaPJBXCYZQb54a3d2f16g7c8a90l?e'b.s;i,d:"
There's a bug here. _DAH_[] should be initiated to
_DAHDIT _DAH_[]="ETIANMSURWDKGOHVFaLaPJBXCYZQb54a3c2g16g7c8a90l?e'b.s;i,d:"
^ ^
Try input "2", and you'll see the bug.
--
"For me, UNIX is a (way of) being."
G|ran Uddeborg
UUCP: {seismo,mcvax}!enea!chalmers!uddeborg
CSnet: uddeborg at chalmers.csnet
More information about the Comp.lang.c
mailing list