returning a String

BlitzMax Forums/BlitzMax Programming/returning a String

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

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.