Using realloc (X, 0) instead of free() and using malloc with length of a string +1
So I don’t really know how to put the title this time. First of all I’d like to say that I’ve seen several comments on this page about warning if the question is related to “homework”.
Mine is, but it’s also completed and I just want to further understand what is going on with the code.