Re: Question about glib hashtable
- From: Ankur Jain <ankur12us yahoo com>
- To: gtk-list gnome org
- Subject: Re: Question about glib hashtable
- Date: Fri, 12 Nov 2004 09:43:42 -0800 (PST)
Thanks for info.
Actually, I have been using the glib 1.2 version and
the API reference for that did not mention anything
about this so I clarified.
Thanks,
Ankur
--- Sven Neumann <sven gimp org> wrote:
> Hi,
>
> Ankur Jain <ankur12us yahoo com> writes:
>
> > 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.
>
> This is explicitely mentioned in the API docs:
>
>
>
http://developer.gnome.org/doc/API/2.0/glib/glib-Hash-Tables.html#g-hash-table-foreach
>
>
> Sven
>
__________________________________
Do you Yahoo!?
Check out the new Yahoo! Front Page.
www.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]