VG3_hash_getint()
[added in version 1.4]
Return the integer-value of a key-value-pair from a hashmap.
SYNTAX
int
VG3_hash_getint(struct vg3_hash *hhash,
const void *key,
size_t keysize)
FUNCTION PARAMETERS
hhash | Hashmap |
key | Key |
keysize | Size of the key in bytes |
RETURN VALUE
Returns the integer-value.
DESCRIPTION
Return value of a key-value-pair from a hashmap, where the value is an integer-value.
If the return value is 0, the key may exist in the hashmap but without a value.
To check for an existing or non-existing key, use VG3_hash_isset().
To check if the key has an integer-value, use VG3_hash_isnum().
SEE ALSO
VG3_hash_new()
VG3_hash_free()
VG3_hash_clone()
VG3_hash_set()
VG3_hash_setint()
VG3_hash_del()
VG3_hash_clear()
VG3_hash_isset()
VG3_hash_isnum()
VG3_hash_get()
VG3_hash_list()