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

2011-06-12 Thread keyd...@gmx.de
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

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

2011-06-12 Thread Thomas Chust
2011/6/12 keyd...@gmx.de : > [...] > In fact to be honest, I do not really understand the reason why I > have to allocate a byte buffer here - what difference does it make > to a char **, shouldn't both just be consecutive places in memory > filled with ascii characters > [...] Hello Sigrid, a by

[racket] Language Levels

2011-06-12 Thread Carolyn Oates
I am mapping the functions of the BotBall robot to Racket.  Something similar would be logical for Lego Mindstorms, but getting it into code that runs on the Lego NXT would be different - perhaps easier... via cross-compiling. Currently I have related defines like motor, sensor in there own racke