Thank you a lot txesmi! This is what I call an answer laugh

So from what I understand, I don't need to care about this local pointers (in this situation STRING*), cause they all are saved in the stack (place where all local stuff and func. parameters are saved) and automatically they will be deleted as soon as function ends, but new string (your example) itself will still exist as it was returned (created) as a global object, right?

F.e. I have an empty global string, I copy results of the function (your example) into it, will it create two objects? The one that returned (created) by the function and that global string that I had from the start? If yes, what would be the best way to delete the one that created by 'new_string'? And do I really need to delete it in order to save some memory?
Code:
str_cpy(globalStr, new_string("Hello?");



greets


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung