6 Dec 2001 aturner   » (Journeyer)

Grrrrr.... I wish I could tar and feather the person who wrote the GNU tsearch manpage. If you're going to include a source code example, could you at least make sure that it works?

For those of you not aware, tsearch has a simple program which inserts 12 random numbers into a tree and prints them out. Only that because of a bug, it only prints out 6 of them.

I'll admit that I'm no C wiz, I couldn't even figure out what was wrong with the code (a friend of mine pointed out that they delete the root node after processing the left side of the tree, preventing further processing).

Anyways, now that I know that the tsearch functions aren't horribly broken, I can continue working on my code. Yippie!

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!