Forum: Geek Forum
Topic: Presents in Open Source
started by: RenegadeSnark

Posted by RenegadeSnark on Jul. 05 2001,04:27
In working on some XML stuff for BitHive, I was researching the XML spec and tolerances the app should make, etc... when I came across this jewel:

quote:
/***************************************************************
* Decode les fucking charateres
***************************************************************/
void OXML::decodefuckingchar(char *s, char *result) {
int lengthofs=0;
int lengthofresult=0;
int j=0;
int i=0;
char fornumber[4];
if (s!=NULL) {
lengthofs=strlen(s);
}
if (result==NULL) return;
while(i<lengthofs) {
if ((s[i]=='\\') && ((i+3)<lengthofs)) {
fornumber[0]=s[i+1];
fornumber[1]=s[i+2];
fornumber[2]=s[i+3];
fornumber[3]=0;
i+=4;
result[j++]=(char)atoi(fornumber);
} else result[j++]=s[i++];
}
result[j]=0;
}


I got a good kick out of that... some French programmer using american profanity in his code. "Parse the fucking character! Fuck the fucker motherfucker character motherfucker"

I shall make a function in bithive called

Rape_Other_Client_And_Take_Their_File

it will be the receive function. or

Theodore_Kazynski_Transmit_File

tee hee hee

or how about this one

Send_Bill_Gates_My_Soul

that of course for the windows port.

Shit, come to think of it, I should be designing for Linux and porting to windows. Not the other way around.

</pointless>


Posted by incubus on Jul. 05 2001,19:02
mmm ... creamy XML goodness ...

------------------
-- incubus
As I chase the leaves like the words I never find ...


Posted by RenegadeSnark on Jul. 06 2001,05:36
*bump*
Powered by Ikonboard 3.1.4 © 2006 Ikonboard