TutHashBucketGetValue get the value in a hash bucket
bucket
the hash bucket to get value from
The current value that is stored in the bucket.
None
TutHashBucketGetValue gets the value stored in bucket
. Before calling this function, obtain a valid bucket by calling TutHashLookupBucket.
None
TutHashLookupBucket, TutHashBucketSetValue
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 |