arg_hashtable_insert() function
This function will cause the table to expand if the insertion would take the ratio of entries to table size over the maximum load factor. This function does not check for repeated insertions with a duplicate key. The value returned when using a duplicate key is undefined -- when the hash table changes size, the order of retrieval of duplicate key entries is reversed. If in doubt, remove before insert.
Arguments
h
the hash table to insert into
k
the key - hash table claims ownership and will free on removal
v
the value - does not claim ownership
Return value
non-zero for successful insertion
arg_hashtable_insert() is called by 1 function and calls 4 functions:
![]()
arg_hashtable_insert()
arg_hashtable_insert() reads 5 variables and writes 5 variables:
![]()
arg_hashtable_insert()