GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GHT_FIRST_KEYSIZE (3)

NAME

ght_first_keysize - return the first element in the table for iteration

CONTENTS

Synopsis
Description
See Also
Author

SYNOPSIS

#include <ght_hash_table.h>

void *ght_first_keysize(ght_hash_table_t *p_ht, ght_iterator_t *p_it, void **pp_key, unsigned int *size);

DESCRIPTION


.Return the first element in an iteration. p_ht is the hash table to iterate in, p_it is a pointer to the iterator to initialize, and pp_key is filled in with a pointer to the key for the current item. size is filled in with the size for this key

This function should be used for iteration and is used together with ght_next_keysize() or .I ght_next() Note that you cannot assume anything about the order in which the entries are accessed. If an entry is inserted during an iteration, the entry might or might not occur in the iteration. Note that removal during an iteration is only safe for the current entry or an entry which has already been iterated over.

The use of the ght_iterator_t allows for several concurrent iterations, where you would use one ght_iterator_t for each iteration. In threaded environments, you should still lock access to the hash table for insertion and removal.

SEE ALSO

ght_next_keysize(3),

libghthash is fully documented with Doxygen (in {prefix}/doc/libghthash/html/).

AUTHOR

This manual page was created by Simon Kagstrom <ska@bth.se>.

Search for    or go to Top of page |  Section 3 |  Main Index


libghthash GHT_FIRST_KEYSIZE (3) 2007-07-15

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.