cdcontainers
0.1.1
Library of data containers and collections for C programming language.
|
The cdc_data_info struct used to initialize contaners. More...
#include <common.h>
Data Fields | |
cdc_free_fn_t | dfree |
dfree - callback free data. More... | |
cdc_binary_pred_fn_t | cmp |
cmp - callback less or greater. More... | |
cdc_binary_pred_fn_t | eq |
eq - callback equil. More... | |
cdc_hash_fn_t | hash |
cdc_copy_fn_t | cp |
size_t | size |
size_t | __cnt |
__cnt More... | |
The cdc_data_info struct used to initialize contaners.
This gives more data about the data stored in the container.
cdc_free_fn_t dfree |
dfree - callback free data.
If this function is not NULL, then it will be automatically applied to free memory for cotainer items.
cmp - callback less or greater.
Used for containers where check for less or greater is required. For example, for a cdc_map.
eq - callback equil.
Used for containers where equality check is required. For example, for a cdc_hash_table.
cdc_hash_fn_t hash |
size_t size |
size_t __cnt |
__cnt
To avoid problems, do not change this field in the code.