cp_hashtable_get_keys(3) - Linux man page
Name
cp_hashtable_get_keys, cp_hashtable_get_values - retrieve hashtable keys / valuesSynopsis
#include <cprops/hashtable.h>
void **cp_hashtable_get_keys(cp_hashtable *table);
void **cp_hashtable_get_values(cp_hashtable *table);
Description
cp_hashtable_get_keys and cp_hashtable_get_values return an array containing all keys and values in the table respectively. The newly allocated array's size may be determined by calling cp_hashtable_count.Return Value
An array of void pointers to the keys / values or NULL on failure.Errors
- EINVAL
- table is NULL.
- ENOMEM
- the return array could not be allocated.