HELPLIB.HLB  —  CRTL  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);

1  –  Argument

 ptr

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

2  –  Description

    The contents of the deallocated area are unchanged.

    In VSI 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.
Close Help