[racket] FFI question again - how to get a string back from C

From: keydana at gmx.de (keydana at gmx.de)
Date: Mon Jun 13 01:35:40 EDT 2011

Hi Thomas,

thanks a lot for your char * vs char** explanation!

> But if there is no sure way to guess the correct buffer size before
> the function call, your only failsafe option is to invoke the function
> repeatedly with increasing buffer sizes as long as it reports
> failure.

I see... but I think it will be okay, in this case, to place on the user the burden to specify the size (as a required argument) :-)

Ciao, and thanks again,

Posted on the users mailing list.