fdds_free - free allocated memory


SYNOPSIS

#include <fdds.h> (fixed-format sources)
#include <f90dds.h> (free-format sources)

integer fdds_free(ptr)

pointer ptr

DESCRIPTION

fdds_free frees allocated memory. If a NULL pointer is passed, then no freeing of memory is done. The DDS memory routines allow for runtime memory checking. See standard man page for free(3).

SEE ALSO

fdds_malloc Allocate memory
fdds_malloc8 Allocate memory
fdds_calloc Allocate memory
fdds_calloc8 Allocate memory
fdds_realloc Reallocate memory
fdds_realloc8 Reallocate memory
fdds_memuse Query allocated memory
    

EXAMPLE

      integer reals
      real buf(*)
      pointer(ptr_buf, buf)
      
      ptr_buf = fdds_malloc(reals*SIZEOF_REAL)
      ...
      
      fdds_free(ptr_buf)
    

AUTHOR

R. L. Selzler, EPTG (Oct 1995)