[REBOL] Re: How to send big string to library and back?
From: al:bri:xtra at: 16-Apr-2001 20:29
> Is string sent to library interface being automatically ended once "0"
char appears in it? (and vice versa - the same for string returning from
library interface to Rebol?)
Don't know for sure. I believe so, based on earlier information on Ally
list. Example, was passing rebol strings to Windows message box, IIRC. The
example script had no special problem with zero terminators, 'cause Rebol
automatically put them in.
> how should I put Rebol string datatype into array of unsigned values?
I don't know where Rebol, the camera port and the C program fit in all this.
Is it like:
Camera -> Serial Port -> Rebol Script -> C program/library
If so, just pass the string (auto converted to zero terminated C string on
Windows, IIRC) to the C program/library.
Who's C has grown very rusty.
ICQ: 26227169 http://members.nbci.com/AndrewMartin/