[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: GHashTable
- From: "David Necas (Yeti)" <yeti physics muni cz>
- To: Russell Shaw <rjshaw netspace net au>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GHashTable
- Date: Sun, 6 Jun 2004 18:36:08 +0200
On Mon, Jun 07, 2004 at 02:15:08AM +1000, Russell Shaw wrote:
>
> > You probably want g_direct_hash.
>
> I'm trying to use an 8-digit integer as the key, but the key
> only exists as a local variable in a function that returns.
>
> I need something like:
>
> hash_table_insert(hash,89798053,"a string");
You definitely want g_direct_hash ;-)
Just cast the integer keys with GUINT_TO_POINTER() when
passing them to GHashTable functions.
Yeti
--
Do not use tab characters. Their effect is not predictable.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]