I have two functions,
//virDomain is some struct
int virDomainCreate(virDomain*);
int virDomainDestroy(virDomain*);
How do I assign these two functions to a variable?
I tried,
int (*func)(virDomain*) = NULL;
func = virDomainCreate(virDomain*); // not working
func = &virDomainDestroy(virDomain*); //not working
Thanks for all your help! Waka.