VgaGames 3 - Hashmap man-pages

[.. upper level ..]

VG3_hash_set()

Insert a key-value-pair into a hashmap.
SYNTAX
void VG3_hash_set(struct vg3_hash *hhash, const void *key, size_t keysize, const void *val, size_t valsize)

FUNCTION PARAMETERS
hhash Hashmap
key Key: a string or a structure
keysize Size of the key in bytes
val Value: a string or a structure, or NULL = no value
valsize Size of the value in bytes

DESCRIPTION
Insert a key-value-pair into a hashmap. The key may be a string or a structure. The value may also be a string or a structure or NULL. If the key or the value are a string, keysize or valsize should contain the terminating 0: strlen(key) + 1 or strlen(val) + 1

SEE ALSO
VG3_hash_new() VG3_hash_free() VG3_hash_clone() VG3_hash_setint() VG3_hash_del() VG3_hash_clear() VG3_hash_isset() VG3_hash_isnum() VG3_hash_get() VG3_hash_getint() VG3_hash_list()