summaryrefslogtreecommitdiff
path: root/libihash
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-04-25 04:58:42 +0000
committerRoland McGrath <roland@gnu.org>1996-04-25 04:58:42 +0000
commit8e3258a0a2070e02f607623646a56d12a57551c9 (patch)
treeeeaf1803e55ea81a56e5c05765b39ef711aceaf4 /libihash
parentd4723575d346e7bf8973515d6d68ec56c299dd5d (diff)
(ihash_find): Change return type to void **.
Diffstat (limited to 'libihash')
-rw-r--r--libihash/ihash.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/libihash/ihash.h b/libihash/ihash.h
index 5d01ea1c..34ad4c84 100644
--- a/libihash/ihash.h
+++ b/libihash/ihash.h
@@ -1,6 +1,6 @@
/* Integer-keyed hash table functions.
- Copyright (C) 1995 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
@@ -74,9 +74,11 @@ void ihash_set_cleanup(ihash_t ht,
occurs, ENOMEM is returned, otherwise 0. */
error_t ihash_add(ihash_t ht, int id, void *item, void ***locp);
-/* Find and return the item in hash table HT with key ID, or NULL if it
- doesn't exist. */
-void *ihash_find(ihash_t ht, int id);
+/* Find and return a pointer to the item in hash table HT with key ID, or
+ NULL if it doesn't exist. The actual item data is got by dereferencing
+ the returned pointer, which can also be passed directly to
+ ihash_locp_remove (below). */
+void **ihash_find(ihash_t ht, int id);
/* Call function FUN of one arg for each element of HT. FUN's only arg is a
pointer to the value stored in the hash table. If FUN ever returns