VgaGames 3 - Hashmap man-pages

[.. upper level ..]

VG3_hash_isset()

Check for existence of a key in a hashmap.
SYNTAX
int VG3_hash_isset(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 integer: - 1: Key is found - 0: Key is not found

DESCRIPTION
Check for existence of a key in a hashmap. As VG3_hash_get() can return NULL as value, it cannot be used to differentiate between a non-existing key and an entry without value.

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_isnum() VG3_hash_get() VG3_hash_getint() VG3_hash_list()