ght_first_keysize man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

ght_first_keysize(3)	    libghthash User Manual	  ght_first_keysize(3)

NAME
       ght_first_keysize - return the first element in the table for iteration

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
       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 any‐
       thing 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 inser‐
       tion and removal.

SEE ALSO
       ght_next_keysize(3),

       libghthash   is	 fully	 documented    with    Doxygen	  (in	 {pre‐
       fix}/doc/libghthash/html/).

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

libghthash			  2007-07-15		  ght_first_keysize(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net