Google Groups Home
Help | Sign in
Message from discussion 1992 International Obfuscated C Code Contest winners
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Nathan Sidwell  
View profile
 More options Sep 10 1992, 5:48 am
Newsgroups: comp.lang.c, comp.sources.d, misc.misc, alt.sources, comp.unix.wizards
From: nathan@elberton (Nathan Sidwell)
Date: Thu, 10 Sep 92 13:50:01 BST
Local: Thurs, Sep 10 1992 8:50 am
Subject: Re: 1992 International Obfuscated C Code Contest winners
Landon C. Noll (cho...@hoptoad.uucp) wrote:
: [the shar files]

As chongo stated, my entry can't be posted from the USA. So
I'm posting it from the UK, replace the shar'ed nathan.c with this code.

----8<-- cut here to break your display --->8----
#include <stdio.h>                    
#include <string.h>                    
#define printf sqrt                    
#define OFST 1                          
#define strnel(sqrt)(sqrt-printf)      

int main(argv,argc)int argv;char*argc[]
;{char*i,*sqrt,*magic,*define;int ptr,\
                watch,                
                t,cond                
                ;for(                  
                argc++                
                ,sqrt=                
"1""q""a""z""2""w""s""x""3""e""d""c""4"
"r""f""v""5""t""g""b""6""y""h""n""7""u"

"j""m""8""i""k"",""9""o""l"".""0""p"";"
"/""[""'""`""]""\"\\"" ""Z""X""C""V""B"
"N""M"          "<"">"           "?""~"
"="":"          "L""K"           "J""H"
"G""F"          "D""S"           "A""!"
"Q""@"          "W""#"           "E""$"
"R""%"          "T""^"           "Y""&"
"U""*"          "I""("           "O"")"

"P""_""{""+""}""|""-",define=sqrt,cond=
strlen(printf),i=printf+cond,t=(((ptr=\
argv<=                                  
OFST||                                
strcmp                                
(*argc                                
,i-1))                                
?0:(argc                              

++,argv--)),OFST-1);(watch=fgetc(((!*i\
&&argv>OFST?i=*argc:0),stdin)))!=EOF;*i?
i++:0)                                
(magic                                
=strc\
hr(pr\
intf,(                                
define                                

=(*i?(define=strchr(printf,*i))?define:
printf:sqrt),watch)))?watch=t,watch=((t=
strnel(                         magic))
+(watch                         -strnel
(define                         ))*(ptr
*2-OFST                         )+cond*
(OFST+1                         ))%cond
,ptr?t=watch:0:0,fputc(magic?watch[pri\
ntf]:watch,stdout);return 0;} /*world*/
--

Nathan Sidwell  INMOS UK |                 | nat...@inmos.co.uk       DoD#0390


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google