title: C - passing function with arguments into wrapper executor
body: <p>Is there a way to build a wrapper function in C as follows:</p>
  
  <pre><code>void wrapper(void *func) {
    // Set up
    func([same arguments as func was passed in with]);
    // Clean up
  }
  
  void foo(int x, int y);
  void bar(char *z);
  
  wrapper(foo(1, 2));
  wrapper(bar("Hello"));
  </code></pre>
  
  <p>It seems as though you have to either pass in the arugments within <code>wrapper</code> or only support one type of method header for <code>func</code>.  I've been writing a lot of Javascript... and of course this is possible in JS.</p>