Dear Adriaan,
But why don't you pass the numerical data in binary form ?
The library is interacting with a Tcl interpreter, which deals with strings. I could pass the data in binary format and then translate into a character string for processing in Tcl. But I'd rather pass the string directly.
Now, it seems to me that the SetLength routine is what I'm looking for.
Yours, Kevan