hash_insert

NAME
SYNOPSIS
DESCRIPTION
AUTHOR
LICENSE
VERSION

NAME

hash_insert, _hash_insert - insert a (key, value) pair into a hash

SYNOPSIS

#include <hash.h>

#define hash_insert(h,key,value) _hash_insert((h),&(key),&(value))
int _hash_insert (hash, const void *key, const void *value);

DESCRIPTION

Insert an element (key, value) into the hash. If key already exists in the hash, then the existing value is replaced by value and the function returns true. If there was no previous key in the hash then this function returns false.

AUTHOR

Richard Jones <rich@annexia.org>

LICENSE

GNU LGPL (see http://www.gnu.org/)

VERSION

c2lib-1.2.13