Table of Contents
GetHash
Get a value from a HashList hash.
SYNOPSIS
int GetHash(HashList *Hash, const char *HKey, long HKLen, void Data);**
DESCRIPTION
Retrieve the data (Data) associated with the key (HKey) from the hash (Hash).
PARAMETERS
| Parameter | Description |
|---|---|
| Hash | Pointer to a HashList hash |
| HKey | Pointer to a C string containing the key to search for |
| HKLen | Size of string that is the key |
| Data | The address of a pointer that will refer to the data associated with the key |
RETURNS
1 if the key was found and Data is set to point to the data.
0 if the key was not found.