Initializing help system before first use

hmset

hmset


Purpose
Set the value associated with a key in a hashmap.
Synopsis
size_t hmset(XPRMcontext ctx,XPRMhashmap hm, size_t key, size_t val, int how);
Arguments
ctx 
Mosel's execution context
hm 
A hashmap
key 
Key to be found
val 
Value for the key
how 
Handling method:
XPRM_HM_SET 
Create a new entry or update the value
XPRM_HM_CLS 
Do not set the value: drop the entry if it already exists
XPRM_HM_ONCE 
Do not modify an existing entry
XPRM_HM_UPD 
Only update an existing entry
Return value
The value associated with the key.
Related topics