free
Syntax
- free(void* buffer)
Arguments
- buffer
- A pointer to a previously allocated memory block.
Description
- Frees the block of memory previously allocated specified by the pointer buffer.
- When specifying a NULL pointer, this function does nothing.
Example
%ffp
OnFilterStart:
{
// Allocate a string for 255 characters.
char* buffer_1 = malloc(255);
free(buffer_1);
}
Also see
- calloc, malloc, realloc