Name
chtbl_lookup
Synopsis
int chtbl_lookup(const CHTbl *htbl
, void **data
);
Return Value
0 if the element is found in the hash table, or -1 otherwise.
Description
Determines whether an element matches
data
in the chained hash table
specified by htbl
. If a match is found,
data
points to the matching data in the
hash table upon return.
Complexity
O (1)
Get Mastering Algorithms with C now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.