TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: KURT KUZBA
from: NORMAN DODGE
date: 1998-04-14 14:38:00
subject: Re:xmas96.c

Hello Kurt!
On 04-8-98, Kurt Kuzba wrote to All:
/*       examples of "obfuscated" C code?
   Here is one of my own... Not terribly obfuscated, but almost
   as difficult to read as my 'normal' code.  */
#include /*XMAS96.C__PUBLIC_DOMAIN__by_Kurt_Kuzba*/
/*\\\\\\\\\\\\\\\\\\\\\\*/int/*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
                        */main/*
                 */(void){char *T[]={/*
           */"We","wish","you","a","Merry",/*
      */"Christmas","and","Happy","New","Year",/**
  */"Glad","tidings","to","all","of","your","kin",/**
 */"for","\n","And"},M[128],*P="WwuaMCzWwuaMCzWwuaM"/*
*/"Cz&aHNYzgt2uz&(@ykzgt^Cz&aHNY";M['W']=0;M['w']=1;M/*
*/['u']=2;M['a']=3;M['M']=4;M['C']=5;M['+']=6;M['H']=/*
 */7;M['N']=8;M['Y']=9;M['g']=10;M['t']=11;M['2']=12/*
    */;M['(']=13;M['@']=14;M['y']=15;M['k']=16;M[/*
           */'^']=17;M['z']=18;M['&']=19;/*
              */while(*P)printf(" %s",/*
                   */T[M[*P++]]);/*
                     */return;}/*
                         *//*
                          */
/*
> ] Never ask for justice. Trust me... You won't like it........
Kurt please note that in order to get your code to compile and link I had
to add a semicolon after the return and a closing brace. See third line
from the bottom of your code.
It works just fine here now and thanks for posting the code.
Norman Dodge
 * 2qwk! 2.04 *
--- FLAME v1.1
---------------
* Origin: TechAlliance BBS Renton Wa. 206-277-6070 (1:343/133)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.