#include <stdlib.h> void free(void *ptr);
Returns the allocated memory to the heap (see section malloc). If the
ptr is NULL
, it does nothing.
None.
ANSI, POSIX
char *q = (char *)malloc(20); free(q);
Go to the first, previous, next, last section, table of contents.