When is a bug not your bug?

BlitzMax Forums/Brucey's Modules/When is a bug not your bug?

Brucey(Posted 2009) [#1]
... when it's someone else's!!

Of course, after you've spent several hours checking and double-checking your own code - on the assumption that since something isn't working, you've probably implemented it wrong...
... you eventually start debugging the code you are wrapping.

Only to find this :
char *_strlwr(char * str )
{
	if (str==0)
		return 0;
	int i=0;
	while (str[i])
	{
		if (str[i]>='A' && str[i]<='Z')
			str[i]+='a'-'A';
	}
	return str;
}


Answers on a postcard to....

:-p


_Skully(Posted 2009) [#2]
Thats messed... where is it from?


Brucey(Posted 2009) [#3]
Raknet :-)


DavidDC(Posted 2009) [#4]
Maybe it's some kind of in-joke.