I am trying to write the ctype for a cfunction and it seems I need to write a different version depending on if it is going to get called racket-&gt;c or c-&gt;racket. I&#39;m not sure how to write the second version.<div>
<br></div><div>The (simplified) type of the function is void f(int count, char** strings);</div><div><br></div><div>So for racket-&gt;c the type is (_fun (strings) (count : _int = (length strings)) (strings : (_list i _string)) -&gt; _void).</div>
<div><br></div><div>But I don&#39;t know how to make it go the other way. My current solution is to use _pointer and do cblock-&gt;list in my actual function, but I was hopefully that this could be automated.</div>