VSTa manual pages  - HASH_INSERT (3)

NAME

hash_insert - insert a new key/value pair into the hash

CONTENTS

Synopsis
Description
Return Value
Bugs
See Also

SYNOPSIS

#include <hash.h>
int hash_insert(struct hash *h, long key, void *val);

DESCRIPTION

hash_insert() inserts a new key specified by key into the hash h. It initially points to val.

RETURN VALUE

Returns 1 on error and 0 on success.

BUGS

An entry with the same key as another already in the hash can be inserted. The other functions will only use the first entry found with the key that is specified.

SEE ALSO

hash_alloc(3), hash_dealloc(3), hash_delete(3), hash_lookup(3), hash_foreach(3), hash_size(3)


HASH_INSERT (3)
Generated by manServer 1.06 from hash_insert.3 using man macros.