Initializing help system before first use

# hmnew

Purpose
Create a new hashmap.
Synopsis
`XPRMhashmap hmnew(XPRMcontext ctx,unsigned int minsize,int flags);`
Arguments

ctx | Mosel's execution context
minsize | Initial size of the hash table ( 0 for default size)
flags | Reserved for future use (should be 0)

Return value
A reference to the newly created hashmap or NULL in case of error.
Further information
1. This function creates a hashmap from the current context of execution. This datastructure makes it possible to record <key,value> pairs and retrieve efficiently the value associated to a given key.
2. Hashmaps and their associated datastructures are allocated using the memory management routines of the running model, as a consequence, hashmaps are automatically released when the model is reset. During the execution of the model it is however possible to release a map using function hmdel
Related topics
hmset, hmget, hmdel, hmdump.
Parent Topic Miscellaneous

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.