/********** ********** The Lame Filter Version 2.8.lame.www ********** by zorgo 07/1/95 ********** ********** 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. Comment out LAME_SRAND if you're lame */ #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 out[count++]=buf[j]; } for(j=0; j\n***\n"); printf("*** Usage:\n"); printf("*** Starting LAME with no arguments will put it in continuous lamerize mode.\n"); printf("*** Use Control-D or Control-C to quit.\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); }