Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
free - free allocated memory
&pagelevel(4)&pagelevel
Syntax | #include <stdlib.h> void free(void *ptr); |
Description | free() releases memory space that was previously reserved using malloc() , calloc() or realloc() .
free() is part of a C-specific memory management package with its own free memory management facility. Memory deallocated with free() is not returned to the operating system but is handled by the free memory management facility.
ptr is the pointer to the memory area to be released. ptr must be the result of a previous
malloc() , calloc() , or realloc() call. Otherwise, the result is undefined. |
See also | calloc() , malloc() , realloc() , sdtlib.h .
|