Binary Tree?



Hi there!

I would like to have a binary tree for some data.  But when I look up
the manual, I find:

void g_tree_insert (GTree *tree,
                    gpointer key,
                    gpointer value);

So the key is a gpointer.  So now:  What exactly can I use there?  I
would like to have strings as my keys.  Is that possible?

Thanks for your help,
Martin




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]