man rhash_entry_getkey (Fonctions bibliothèques) - get/set key in an RHash entry.
NAME
rhash_entry_getkey, rhash_entry_setkey - get/set key in an RHash entry.
SYNOPSIS
#include <roy.h>
void * rhash_entry_getkey (void *entry); void rhash_entry_setkey (void *entry);
DESCRIPTION
These functions retrieve or set the key for a hash entry. The key is stored in the hash entry so that it may be compared when inserted, looked up etc. entry must have the RHASH_HEADER as its first member.
Note that it is not necessary to use rhash_entry_setkey(3) to set the key prior to insertion into the hash table. rhash_insert(3) takes the key as an argument and sets it within the insert function.
SEE ALSO
rhash(3), rhash_entry_setkey(3), rhash_free(3), rhash_insert(3), rhash_len(3), rhash_lookup(3), rhash_lookup_next(3), rhash_new(3), rhash_remove(3), rhash_remove_entry(3), roy(3)