Initializing help system before first use

hmfind

hmfind


Purpose
Get a reference to the value associated with a key in a hashmap.
Synopsis
size_t *hmfind(XPRMcontext ctx,XPRMhashmap hm, size_t key, int how);
Arguments
ctx 
Mosel's execution context
hm 
A hashmap
key 
Key to be found
how 
Handling method:
XPRM_HM_SET 
Create the entry if it does not exist yet
XPRM_HM_UPD 
Return NULL if the key could not be found
Return value
A reference to the value associated with the key or NULL if the key could not be found.
Related topics