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->c or c->racket. I'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->c the type is (_fun (strings) (count : _int = (length strings)) (strings : (_list i _string)) -> _void).</div>
<div><br></div><div>But I don't know how to make it go the other way. My current solution is to use _pointer and do cblock->list in my actual function, but I was hopefully that this could be automated.</div>