Re: Binary Tree?



On Wed, 22 Dec 2004 21:48:40 +0100
Martin Klaffenboeck <martin klaffenboeck gmx at> wrote:

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?
yes, in C you have table of characters for strings, and tables are
pointers.


-- 
Hubert Sokolowski




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