cp_hashtable_get_keys(3)
| cp_hashtable(3) | libcprops - cp_hashtable | cp_hashtable(3) |
NAME
cp_hashtable_get_keys, cp_hashtable_get_values - retrieve hashtable keys / values
SYNOPSIS
#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.
SEE ALSO
| OCTOBER 2005 | libcprops.0.0.3 |
