Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I also guess the instruction was not clear enough
Ok, I got it now. I was awear of the stack variables, was a little confused about the moment the memory is set to "writable". I see now my problem. Thank you for pointing it out! Have a great day/night!
... but
static char returnString[20] = "";
is not allocated on a heap?Hello there,
Can you elaborate? I am returning the created string, after that, even though the data from the string will be deleted (after the return statement), I will no longer use the pointer in the main program. What I envisioned this method to do is basically a 1-time call, when I would set the roman literals equivalent, after that using the saved main-local variable for further operations.
Can you, please, tell me what would be the issue in that case? and how can I improve my code?
Thank you for finding the time to look into my code.