VgaGames 3 - Hashmap man-pages

[.. upper level ..]

VG3_hash_isnum()

[added in version 1.4]

Check if a key in a hashmap has an integer-value.
SYNTAX
int VG3_hash_isnum(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 has integer-value - 0: Key has no integer-value

DESCRIPTION
Check if a key in a hashmap has an integer-value. A key without value (when VG3_hash_get() would return NULL as value) will be regarded as integer-value with value = 0.

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