Hello,
In BASIC there is a very useful function called RESET that clears out
all the stored variables and restores memory state to startup.
Why is there not a similar function in C? It should free up all heap
allocations without having to free them individually.
Often programs will have memory leaks, so if they are run over long
times then it's necessary to restart them sometimes. With a reset()
function, they could effectively restart themselves by freeing their
memory without needing to be closed and reopened.