hash_insert, _hash_insert - insert a (key, value) pair into a hash |
#include <hash.h> #define hash_insert(h,key,value) _hash_insert((h),&(key),&(value)) int _hash_insert (hash, const void *key, const void *value); |
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. |
Richard Jones <rich@annexia.org> |
GNU LGPL (see http://www.gnu.org/) |
c2lib-1.2.13 |