Re: Binary Tree?
- From: Hubert Sokolowski <h sokolowski wsisiz edu pl>
- To: Martin Klaffenboeck <martin klaffenboeck gmx at>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Binary Tree?
- Date: Wed, 22 Dec 2004 21:55:48 +0100
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]