title: Function Pointer - Store and Usage
body: <p>I have a linked list where each element can contain </p>
  
  <pre><code>typedef struct elem {
      struct elem *next;
      void *data;
  } *elem;
  </code></pre>
  
  <p>Now, say I have a method like...</p>
  
  <pre><code>void blah(int random) {
      printf("testing\n");
  }
  </code></pre>
  
  <p>And I store it inside my list...</p>
  
  <pre><code>elem lst = (elem) malloc(sizeof(elem));
  lst-&gt;next = NULL;
  lst-&gt;data = &amp;blah;
  </code></pre>
  
  <p>How do I now call the method by taking it from my linked list?<br>
  Also, am I storing the function in my linked list properly?</p>