title: C++/C function pointers that return void*
body: <p>I'm trying to call a function that takes an argument, <code>void(*)(void*, int, const char*)</code>, but I cannot figure out how to pass those arguments to the function.</p>
  
  <p>Example:</p>
  
  <pre><code>void ptr(int);
  int function(int, int, void(*)(int));
  </code></pre>
  
  <p>I am trying to call the function like this:</p>
  
  <pre><code>function(20, 20, ptr(20));
  </code></pre>
  
  <p>Is this possible?</p>