[REBOL] How to send big string to library and back?
From: petr:krenzelok:trz:cz at: 16-Apr-2001 2:26
as I am not fluent in C programming, I asked my friend to set-up GNU C on my
desktop and notebook. I showed him Rebol library interface, and asked him,
if he would be able to maintain image data inside the library space. Our
device (CCD camera) returns pixel information as two bytes values 0 to 65535
(#FFFF). ("0" is converted to ^@, if I convert values to 'to-string ones)
But my friend asked me a question I am not able to answer him. According to
him, in C language, string is ended by "0" char. So if my image data will
contain "0" char, it could be regarded as an end of a tring by internal
Rebol library interface routines.
So is there a way how to send string of concrete length to library space and
back, without the fear that "0" char will end my string by accidance?
Has anyone tried that? Or maybe Jeff could clarify?