Writting a getter for a pointer to a function .
- by nomemory
I have the following problem:
"list.c"
struct nmlist_element_s {
void *data;
struct nmlist_element_s *next;
};
struct nmlist_s {
nmlist_element *head;
nmlist_element *tail;
unsigned int size;
void (*destructor)(void *data);
int (*match)(const void *e1, const void *e2);
};
/*** Other code ***/
What will be the signature for a function that returns 'destructor' ?