man rhash_remove (Fonctions bibliothèques) - remove an entry from an RHash by key.

NAME

rhash_remove - remove an entry from an RHash by key.

SYNOPSIS

#include <roy.h>

void * rhash_remove (RHash *hash, void *key);

DESCRIPTION

Removes the entry specified in key from a hash table. The entry is not free'd, it is simply unlinked from the hash table, and will no longer be available for lookup. It is the programmers responsability to free the user defined entry.

key is of the type as defined by the compare and hash functions provided at RHash creation time. See rhash(3) for details.

RETURN VALUE

This function returns the entry as inserted via rhash_insert(3). If no such entry exists identified by the given key, then NULL is returned.

SEE ALSO