TutHashBucketGetValue


Name

TutHashBucketGetValue — get the value in a hash bucket

Synopsis

T_PTR TutHashBucketGetValue(bucket) 
T_HASH_BUCKET bucket; 

Arguments

bucket — the hash bucket to get value from

Return Values

The current value that is stored in the bucket.

Diagnostics

None

Description

TutHashBucketGetValue gets the value stored in bucket. Before calling this function, obtain a valid bucket by calling TutHashLookupBucket.

Caution

None

See Also

TutHashLookupBucket, TutHashBucketSetValue

Examples

This example gets the value in the hash bucket:

T_HASH_TABLE table; 
T_HASH_BUCKET bucket; 
T_PTR ptr; 
 
table = TutHashCreateStr(20); 
TutHashInsert(table, "EAST", (T_PTR)1); 
/* look up the bucket that contains the entry for "EAST" */ 
bucket = TutHashLookupBucket(table, "EAST"); 
/* get the value in the bucket */ 
ptr = TutHashBucketGetValue(bucket); 

TIBCO SmartSockets™ Utilities
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com