Re: GHashTable



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]