
PS: The C code above was written with the help of ChatGPT
In the TCC example in QM, the return values are all integers. Sometimes I find some C++functions that return strings, so I tried the above,
The above code is very short. Is there a simple solution? Or can you provide an example of a function that returns a string type?