Function
Searches a hash table for an element matching a specified key.
Syntax
#include <dx/dx.h>
Element DXQueryHashElement(HashTable hashTable, Key searchKey)
Functional Details
If a hash function was provided when the table was created, that function is used to derive a long integer pseudokey from searchKey; otherwise, the first long integer of searchKey is assumed to be the pseudokey. If a compare function was provided when the hash table was created, then more than one element may be stored with the same pseudokey. DXQueryHashElement will use this compare function to return the element that matches the searchKey.
Key is defined as:
typedef Pointer Key;
Return Value
Returns the element if found or returns NULL, but does not set an error code.
See Also