I am fairly new to c++, having worked on c# for at least 5 years. i tried making a function that returned a string using the method casey used, which allocated all the memory on a single call in the beginning of the project.
with this constraint, i have 2 options:
a. using char s[something], but then returning it to the main problem is problematic because it's local and the memory may be changed on function calls.
b. allocating it into the memory arena, but then i can't delete it without using a clever scheme for the arena.
right now i allocate it and store the string for eternity on the gameState struct, but i think it's kinda hacky. i hope someone can show me a new way to handle it.
thanks.