VgaGames 3 - Miscellaneous man-pages

[.. upper level ..]

VG3_hash_isset()

Check for existence of a key in a hash.
SYNTAX
int VG3_hash_isset(struct vg3_hash *hhash, const void *key, size_t keysize)

FUNCTION PARAMETERS
hhash Hash
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 hash. 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_set() VG3_hash_del() VG3_hash_clear() VG3_hash_get() VG3_hash_list()