shash_insert, _shash_insert - insert a (key, value) pair into a shash |
#include <hash.h> #define shash_insert(h,key,value) _shash_insert((h),(key),&(value)) int _shash_insert (shash, const char *key, const void *value); |
Insert an element (key, value) into the shash. If key already exists in the shash, then the existing value is replaced by value and the function returns true. If there was no previous key in the shash then this function returns false. |
Richard Jones <rich@annexia.org> |
GNU LGPL (see http://www.gnu.org/) |
c2lib-1.2.13 |