/* multimap_t */ void _type_init_multimap(const void* cpv_input, void* pv_output) { bool_t b_result = false; assert(cpv_input != NULL && pv_output != NULL); b_result = _create_multimap_auxiliary((multimap_t*)cpv_input, (char*)pv_output); assert(b_result); multimap_init((multimap_t*)cpv_input); }
/** * Create multimap container. */ multimap_t* _create_multimap(const char* s_typename) { multimap_t* pmmap_map = NULL; if((pmmap_map = (multimap_t*)malloc(sizeof(multimap_t))) == NULL) { return NULL; } if(!_create_multimap_auxiliary(pmmap_map, s_typename)) { free(pmmap_map); return NULL; } return pmmap_map; }