FREE()
void free(void *pointer);
* the function name doesn't require any comments;
* the function does not return any results so its type is defined as void;
* the function expects one parameter – the pointer to the memory block that is to be
released; usually it’s a pointer previously received from the malloc or its
kindred; using another pointer value may cause some kind of disaster;
* the function doesn't need to know the size of the freed block; you can only release
the entire allocated block, not a part of it;
* after performing the free function, all the pointers that point to the data inside
the freed area become illegal; attempting to use them may result in abnormal
program termination.
Last updated