Re: storing integers in pointers

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

 



On Saturday 19 March 2005 11:02, ibr@xxxxxxxxxxxxxxxxx wrote:

> I'm using GTree and GHashTable to store bytes as data (via provided type
> conversion macros like GINT_TO_POINTER). Lookup functions return NULL if
> the key was not found. Does this mean that one can't use the type
> conversion trick to store data for which 0 is a valid value?

You can if you use g_hashtable_lookup_extended() and g_tree_lookup_extended() 
for the lookup.

Cheers
 -Tim
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux