VG3_hash_setint()
[added in version 1.4]
Insert a key-value-pair with an integer-value into a hashmap.
SYNTAX
void
VG3_hash_setint(struct vg3_hash *hhash,
const void *key,
size_t keysize,
int val)
FUNCTION PARAMETERS
hhash | Hashmap |
key | Key: a string or a structure |
keysize | Size of the key in bytes |
val | Value: an integer-value |
DESCRIPTION
Insert a key-value-pair into a hashmap, where the value is an integer-value.
The key may be a string or a structure.
If the key is a string, keysize should contain the terminating 0:
strlen(key) + 1
SEE ALSO
VG3_hash_new()
VG3_hash_free()
VG3_hash_clone()
VG3_hash_set()
VG3_hash_del()
VG3_hash_clear()
VG3_hash_isset()
VG3_hash_isnum()
VG3_hash_get()
VG3_hash_getint()
VG3_hash_list()