VgaGames4

VgaGames4 - hash man-pages

[.. upper level ..]

# vg4->hash->set()

Insert an entry into a hash.

SYNTAX
void vg4->hash->set(struct VG_Hash *hsh, const char *key, const void *vval, size_t sval)
FUNCTION PARAMETERS

hsh | Hash
key | Key
vval | Value (may be NULL)
sval | Number of bytes in vval

DESCRIPTION
Insert an entry into a hash. The key must be a string, the vval may be an arbitrary pointer (string, structure ...), which will be copied into the hash-entry.
SEE ALSO
vg4->hash->setstr() vg4->hash->setint() vg4->hash->isset() vg4->hash->isnum()