Testing, Testing Testing.

Armitage

Banned
Feb 23, 2001
8,086
0
0
So a few weeks ago I wrote a piece of code for an officemate. Just a simple program to parse some big data files, and calculate some stats on em. Worked great.

So he gives this code to another organization to run. They find a problem ... strsep is not available in their compiler from Solaris (I wrote the code on Linux). So the guy out there decides ... no problem, I'll just replace it with strtok! Which he does, with a macro :roll:

Now strtok does effectively the same thing as strsep. Not sure why I used one rather then the other. But how you use it slightly different.

The result being that they spent much of last week running this code on several gig of data, apparently not bothering to look hard at the results until today. And of course the results are all crap.

About the time that I heard about the problem & fixed it, they were discussing "porting" the code to windows as a solution?!?
 

BlueWeasel

Lifer
Jun 2, 2000
15,944
475
126
Sounds like someone has a case of the Mondays.

Sorry, I just had to throw that in. :laugh: