[comp.lang.c] Fill in the blanks

ballou@brahms.UUCP (04/04/87)

This code is unfortunately too big for the official obscure C contest.
Hence we are just offering it as is, unentered.

So it goes in the world.

ucbvax!brahms!ballou	Kenneth R Ballou/Brahms Gang/Berkeley CA 94720
ucbvax!brahms!weemba	Matthew P Wiener/Brahms Gang/Berkeley CA 94720
-----------------------------cut here---------------------------------
#!/bin/sh
#
#This is a shell archive, meaning copy it to a separate file,
#remove everything above the "/bin/sh", and run "sh that-file".
#
#This code may be obscure, but you will recognize what it does
#when you try it.  There are no Trojan horses here--trust us!
#
#Your C preprocessor better be able to handle identifiers up
#to 78 characters long.  Otherwise, forget it.  The compiler
#itself better be able to handle very long lines--longer than
#vi can handle, for example.
#
#For aesthetic reasons, we refused to make this code portable
#to non-ASCII machines.  The dedicated hack will identify why. 
#
#This code may not sold for profit, but otherwise is unrestricted.

obscure=obscure.c
if
	test -w $obscure
then
	echo "$obscure exists--will not overwrite"
	exit
fi
cat > $obscure << OBSCURE
/* Copyright 1987 Ken Ballou and Matthew P Wiener--Big Fat Deal*/

#define _ define
OBSCURE
tr -d '\012' >> $obscure << OBSCURE
#_ __________________ ;main(____________,_____________)int ____________;char**
_____________;{_________________________(____________,_____________,"_________
OBSCURE
cat >> $obscure << OBSCURE
________________");};
#_ ___ char*________________[]={
#_ ____ },*______________=
#_ _____ ,______________________=
#_ ______(_) ______________________,________________[_],______________________
#_ _______(_) ________________[_],_______________________
#_ ________ ,_______________________=
#_ _________ ,*_______________=
OBSCURE
tr -d '\012' >> $obscure << OBSCURE
#_ __________(_) ______________________,_,______________________,_____________
OBSCURE
cat >> $obscure << OBSCURE
__________
OBSCURE
tr -d '\012' >> $obscure << OBSCURE
#_ ___________________ _________________________(____________,_____________,__
______________________)int ____________;char**_____________,*_________________
_______;{printf(______________,_______________________,_______________________
,_______(0),________________[1],________________________,_____________________
_,________________________,______________________,_______________________,____
___(2),_______(3),_______(4),_______(5),_______(6),_______(7),_______(8),_____
__(9),_______(_______________________),_______(11),_______(12),_______(13),___
____(14),_______(15),_______(16),_______________________);if(____________>1&&_
____________[1][1]=='D')exit(0);printf(_______________,______(0),______(1),___
___(2),______(3),______(4),______(5),______(6),______(7),______(8),______(9),_
_____(_______________________),______(11),______(12),______(13),______(14),___
___(15),______(16),_______________________,__________(______________),________
______________,_______________________,_______________________,__________(____
___________),_______________________,_______________________,_________________
______,_______________________,_______________________,_______________________
,_______________________,_______________________,_______________________,_____
__________________,_______________________,_______________________,___________
____________,_______________________,_______________________,_________________
______,_______________________,_______________________,_______________________
,_______________________,_______________________,_______________________,_____
__________________,_______________________,_______________________,___________
____________,_______________________,_______________________,_________________
______,_______________________,_______________________,_______________________
,_______________________,_______________________,_______________________,_____
__________________,_______________________,_______________________,___________
____________,_______________________,_______________________,_________________
______,_______________________,_______________________,_______________________
OBSCURE
cat >> $obscure << OBSCURE
,_______________________,_______________________);}
#_ ____________________
#_ ______________________________________________
#_ ______________________________________________________
#_ ______________________________________________________________
#_ ______________________________________________________________________
OBSCURE
tr -d '\012' >> $obscure << OBSCURE
#_ ___________________________________________________________________________
OBSCURE
cat >> $obscure << OBSCURE
___

OBSCURE
tr -d '\012' >> $obscure << OBSCURE
___ "#define _ define","__________________ ;main(____________,_____________)in
t ____________;char**_____________;","___ char*________________[]={","____ },*
______________=","_____ ,______________________=","______(_) _________________
_____,________________[_],______________________","_______(_) ________________
[_],_______________________","________ ,_______________________=","_________ ,
*_______________=","__________(_) ______________________,_,___________________
___,_______________________","___________________ _________________________(__
__________,_____________,________________________)int ____________;char**_____
________,*________________________;{printf(______________,____________________
___,_______________________,_______(0),________________[1],___________________
_____,______________________,________________________,______________________,_
______________________,_______(2),_______(3),_______(4),_______(5),_______(6),
_______(7),_______(8),_______(9),_______(_______________________),_______(11),
_______(12),_______(13),_______(14),_______(15),_______(16),__________________
_____);if(____________>1&&_____________[1][1]=='D')exit(0);printf(____________
___,______(0),______(1),______(2),______(3),______(4),______(5),______(6),____
__(7),______(8),______(9),______(_______________________),______(11),______(12
),______(13),______(14),______(15),______(16),_______________________,________
__(______________),______________________,_______________________,____________
___________,__________(_______________),_______________________,______________
_________,_______________________,_______________________,____________________
___,_______________________,_______________________,_______________________,__
_____________________,_______________________,_______________________,________
_______________,_______________________,_______________________,______________
_________,_______________________,_______________________,____________________
___,_______________________,_______________________,_______________________,__
_____________________,_______________________,_______________________,________
_______________,_______________________,_______________________,______________
_________,_______________________,_______________________,____________________
___,_______________________,_______________________,_______________________,__
_____________________,_______________________,_______________________,________
_______________,_______________________,_______________________,______________
_________,_______________________,_______________________,____________________
___,_______________________,_______________________,_______________________);}
","____________________","______________________________________________","___
___________________________________________________","________________________
______________________________________","_____________________________________
_________________________________","__________________________________________
OBSCURE
cat >> $obscure << OBSCURE
____________________________________"
OBSCURE
tr -d '\012' >> $obscure << OBSCURE
____ "/* Copyright 1987 Ken Ballou and Matthew P Wiener--Big Fat Deal*/%c%c%s%
c#_ %s{%s(____________,_____________,%c%s%c);};%c#_ %s%c#_ %s%c#_ %s%c#_ %s%c#
_ %s%c#_ %s%c#_ %s%c#_ %s%c#_ %s%c#_ %s%c#_ %s%c#_ %s%c#_ %s%c#_ %s%c#_ %s%c%c
OBSCURE
cat >> $obscure << OBSCURE
"
_____ '"'
________ 10
OBSCURE
tr -d '\012' >> $obscure << OBSCURE
_________ "___ %c%s%c,%c%s%c,%c%s%c,%c%s%c,%c%s%c,%c%s%c,%c%s%c,%c%s%c,%c%s%c,
%c%s%c,%c%s%c,%c%s%c,%c%s%c,%c%s%c,%c%s%c,%c%s%c,%c%s%c%c____ %c%s%c%c_____ '%
c'%c________ 10%c_________ %c%s%c%c%c                _________________________
_____________________%c            ___________________________________________
___________%c        _________________________________________________________
_____%c    ___________________________________________________________________
___%c_________________________________________________________________________
_____%c____________________                                      _____________
_______%c____________________                                      ___________
_________%c____________________                                      _________
___________%c____________________                                      _______
_____________%c____________________                                      _____
_______________%c____________________                                      ___
_________________%c____________________                                       
__________________%c____________________%c____________________%c______________
______%c____________________%c____________________%c____________________%c____
________________%c____________________%c____________________%c________________
____%c____________________%c____________________%c____________________%c______
______________%c____________________%c____________________%c__________________
__%c____________________%c____________________%c____________________          
                             ___________________%c____________________        
                              ____________________%c____________________      
                                ____________________%c____________________    
                                  ____________________%c____________________  
                                    ____________________%c____________________
                                      ____________________%c__________________
__                                      ____________________%c________________
______________________________________________________________%c    __________
____________________________________________________________%c        ________
______________________________________________________%c            __________
____________________________________________%c                ________________
OBSCURE
cat >> $obscure << OBSCURE
______________________________%c"

                ______________________________________________
            ______________________________________________________
        ______________________________________________________________
    ______________________________________________________________________
______________________________________________________________________________
____________________                                      ____________________
____________________                                      ____________________
____________________                                      ____________________
____________________                                      ____________________
____________________                                      ____________________
____________________                                      ____________________
____________________                                       __________________
____________________
____________________
____________________
____________________
____________________
____________________
____________________
____________________
____________________
____________________
____________________
____________________
____________________
____________________
____________________
____________________
____________________
____________________
____________________
____________________                                       ___________________
____________________                                      ____________________
____________________                                      ____________________
____________________                                      ____________________
____________________                                      ____________________
____________________                                      ____________________
____________________                                      ____________________
______________________________________________________________________________
    ______________________________________________________________________
        ______________________________________________________________
            ______________________________________________________
                ______________________________________________
OBSCURE
if
	test 11092 -eq `wc -c < $obscure`
then
	echo "file checked out--have fun!"
else
	echo "sorry, file was damaged in transit"
fi