Allows to copy the provided hash, providing the copy function used to duplicate key and value items stored. The function are optional, so, if they are null, the same value is stored in the hash (for the key and the value). In this case, if the source hash has defined destroy function for either key or values, they will not be configured in the returning hash. If function are provided, axl_hash_copy will use it to get a duplicated version for either the key or the value. In this case, if the source hash has defined the destroy function either for the key or the value, it will be configured in the returning hash.
|