Re: Question about glib hashtable



On Thu, Nov 11, 2004 at 10:30:45PM -0800, Ankur Jain wrote:
> If I am making a call of the form:
> 
> g_hash_table_foreach(
> hash_table_ptr, my_func, user_data)
> 
> Is it safe to modify the hash table referenced by
> "hash_table_ptr" (e.g. add/remove entries and then
> free the removed keys & values) from inside the
> "my_func" function.

http://developer.gnome.org/doc/API/2.0/glib/glib-Hash-Tables.html#g-hash-table-foreach

Yeti


--
Dynamic IP address is not a crime.



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