title: c assign function pointer to variable
body: <p>I have two functions,</p>
  
  <pre><code>//virDomain is some struct
  int virDomainCreate(virDomain*);
  int virDomainDestroy(virDomain*);
  </code></pre>
  
  <p>How do I assign these two functions to a variable?</p>
  
  <p>I tried,</p>
  
  <pre><code>int (*func)(virDomain*) = NULL;
  func = virDomainCreate(virDomain*); // not working
  func = &amp;virDomainDestroy(virDomain*); //not working
  </code></pre>
  
  <p>Thanks for all your help!
  Waka.</p>