Implementation status: implemented

Synopsis

#include <stdlib.h>

void free(void *ptr);

Description

The function deallocates the memory previously allocated by a call to calloc(), malloc(), or realloc(). If ptr is a NULL pointer, no operation is performed.

Arguments:

ptr - the pointer to the allocated earlier memory.

Return value

None.

Errors

No errors are defined.

Implementation tasks

  • None.