cfree

Makes available for reallocation the area allocated by a previous calloc, malloc, or realloc call. This function is AST-reentrant.

Format

#include  <stdlib.h>

void cfree  (void *ptr);

Argument

ptr
The address returned by a previous call to malloc, calloc, or realloc.

Description

The contents of the deallocated area are unchanged.

In DEC C for OpenVMS Systems, the free and cfree functions are equivalent. Some other C implementations use free with malloc or realloc, and cfree with calloc. However, since the ANSI C standard does not include cfree, using free may be preferable.

See also free in this section.


Previous Page | Next Page | Table of Contents | Index