Getting a string value from a C function that doesn't _return_ the value

I don’t. I mean, I see the difference between param and value, but not the discrepancy.

With param, I am sending the function an argument - a string to lookup. So, logically it makes sense to me that I just send it a string straight up. And I can see that this is working, in the DLL’s log output.

With value, I am expecting to get a result of the lookup done by the function somehow. I don’t know how big that result will be so how can I allocate storage for the string? The code for the function shows that internally it is creating a temporary string called tmp, and allocating the size of that string based on the result it gets from looking up the parameter. It then copies the tmp string to value:

			strncpy_s(value, strlen(value) + 1, tmp.c_str(), count);

If I was working in C, then value would be available to me in the code that calls this function, since the function is using a pointer to value.

So how do I get value in Xojo, is my question.