Re: g_hash_table_find()
- From: "David Necas (Yeti)" <yeti physics muni cz>
- To: Russell Shaw <rjshaw netspace net au>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: g_hash_table_find()
- Date: Sun, 20 Jun 2004 11:06:05 +0200
On Sun, Jun 20, 2004 at 07:03:44PM +1000, Russell Shaw wrote:
I have used g_hash_table_lookup() ok. However, i'm trying to
do a reverse lookup now where i can supply the value and find
the matching key.
g_hash_table_find() returns the *value* (as is written in the
cited docs).
You can get the key only as a side effect by passing
something where the key can be stored as user_data, and
storing it the in predicate when it succeeds.
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]