/* S0 U wAnt t() be laMe? Yezz, this 1s Y3t AN()th3r T3xt f1lTer f()r U LameRs t() us3. It sH0uLd C0mp1le 0N alm0ST any mAcHin3 that isn'T t0() lame. Us3 IT t0 lAm3R1ze Ur teXT wh3n ()n chat sYSt3mzz, usE 1t t() lam3r1ze Ur emA1L, hecK, uSe 1t T() lam3R1Ze wh()lE B00KS. 1F U're S0 lame tHAt U nEed h3Lp, type lame -h & Th3 |ame pr0gRam Will G1ve a hElp scrEen. */ /********** ********** The Lame Filter Version 2.7.lame.lame.lame ********** by zorgo 07/11/93 ********** ********** This code is too lame to be Commercial, ********** too lame to be Shareware, ********** too lame to be Public Domain, ********** too lame to be GNU copylefted, ********** it's Lameware! ********** **********/ #define MAXLAME 1000 /* #define LAME_SRAND 1 */ /* Some lamers have complained that 'time_t t' definition for srand barfed on compile, so now we use lame getpid() in srand UNLESS you define LAME_SRAND */ #include #include #ifdef LAME_SRAND #include #endif void main(argc, argv) int argc; char *argv[]; { register int i; char buf[MAXLAME]; if(argc > 1) { if( *argv[1]=='-' ) { usage(); exit(); } for(i=1; i=2)) { out[count++]='1'; } else if( buf[j]=='l' && (rand()%3==1)) { out[count++]='|'; } else if(buf[j]=='s'&&(buf[j+1]=='\0'||ispunct(buf[j+1]))){ out[count++]='z'; out[count++]='z'; } else if( (buf[j]=='e' || buf[j]=='E') &&(rand()%5 >= 3) ){ out[count++]='3'; } else if( rand()%5==1 ) out[count++]=toupper(buf[j]); else out[count++]=buf[j]; } out[count]=NULL; printf("%s", out); return(1); } /********************************************************************/ /********************************************************************/ usage() { printf("\n***\n*** The Lamer Filter, Version 2.7\n"); printf("***\n*** by zorgo \n***\n***\n"); printf("*** Usage:\n"); printf("*** Starting LAME with no arguments will put it in continuous lamerize mode.\n"); printf("*** Use Control-C to quit.\n"); printf("***\n"); printf("*** Starting LAME with arguments will lamerize everything on\n"); printf("*** the command line, and then quit.\n"); printf("***\n"); printf("*** To lamerize a text file:\n"); printf("*** Unix: cat in_file | lame > out_file\n"); printf("*** MSDOS: type in_file | lame > out_file\n"); printf("***\n"); printf("*** To be lame in real time on IRC (ircII only):\n"); printf("*** /alias l /exec -out lame \"$0-\"\n"); printf("*** /l text_to_be_lamerized\n"); return(1); }