Can you tell me how to call a C function from Crystal which returns a string in argument?
bool myFunction(char ** result);
I tried the following:
fun myFunction(result : UInt8**) : Bool
and this gives anerror: must be Pointer(Pointer(UInt8)), not Pointer(String)
I tried also with MyCLib.myFunction(out result) which gives an undefined reference, or pointerof(pointerof(result) which gives ‘can’t take address of pointerof(result)’