Search Members Help

» Welcome Guest
[ Log In :: Register ]

 

[ Track This Topic :: Email This Topic :: Print this topic ]

reply to topic new topic new poll
Topic: Presents in Open Source< Next Oldest | Next Newest >
 Post Number: 1
RenegadeSnark Search for posts by this member.
Old School
Avatar



Group: Members
Posts: 534
Joined: May 2000
PostIcon Posted on: Jul. 05 2001,04:27  Skip to the next post in this topic. Ignore posts   QUOTE

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>

Offline
Top of Page Profile Contact Info 
 Post Number: 2
incubus Search for posts by this member.
mack daddy
Avatar



Group: Admins
Posts: 1316
Joined: May 2000
PostIcon Posted on: Jul. 05 2001,19:02 Skip to the previous post in this topic. Skip to the next post in this topic. Ignore posts   QUOTE

mmm ... creamy XML goodness ...

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

Offline
Top of Page Profile Contact Info WEB 
 Post Number: 3
RenegadeSnark Search for posts by this member.
Old School
Avatar



Group: Members
Posts: 534
Joined: May 2000
PostIcon Posted on: Jul. 06 2001,05:36 Skip to the previous post in this topic.  Ignore posts   QUOTE

*bump*
Offline
Top of Page Profile Contact Info 
2 replies since Jul. 05 2001,04:27 < Next Oldest | Next Newest >

[ Track This Topic :: Email This Topic :: Print this topic ]


 
reply to topic new topic new poll

» Quick Reply Presents in Open Source
iB Code Buttons
You are posting as:

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code