Admin Production ni-theme
Current Publication

HashTableFindItem

LabWindows/CVI

HashTableFindItem

int HashTableFindItem (HashTableType table, void *key, int *found);

Purpose

Determines if a given key is associated with a value in this hash table.

Parameters

Input
Name Type Description
table HashTableType Hash table to search.
key void * Pointer to the first byte of the key data.
Output
Name Type Description
found int A nonzero value if the hash table has an associated value for the key, otherwise zero.

Return Value

Name Type Description
status int Returns a value indicating if the function was successful.

A negative number means an error occurred.

For a detailed error message, pass the returned value to GetGeneralErrorString.

Additional Information

Library: Programmer's Toolbox

Include file: toolbox\toolbox.h

LabWindows/CVI compatibility: LabWindows/CVI 8.5 and later

Example

Refer to toolbox\hashtable.cws for an example of using the HashTableFindItem function.