i have a problem/questions about releasing memory which has been allocated inside a function.
it looks like this:
buffer = (char *)malloc(10000);
is there a better way then using "free(buffer)" outside the
function (sometimes after the data in buffer is not needed anymore)? this is not really a problem - but it is easy to
forget to "free(buffer)" which would lower the amount of
memory alot :(