Returning a string from C will probably be pretty hard. Check out blitz.mod and whatever .c file has string somewhere in the title. Perhaps there is a function there that can help you.
I'm guessing you would return something like a pointer to two integers (reference counter and length) followed by a pointer to a block of 16 bit unicode charachters.
I'm guessing you would return something like a pointer to two integers (reference counter and length) followed by a pointer to a block of 16 bit unicode charachters.