fdds_malloc8 - allocate memory


SYNOPSIS

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

pointer fdds_malloc8(size);

real*8 size

DESCRIPTION

fdds_malloc8 allocates memory. If zero bytes are requested, then a NULL pointer is returned. The "real*8" argument is provided to allocate greater than 2 gigabytes of memory. The DDS memory routines allow for run time memory checking. See standard man page for malloc(3).

The following DDS parameters are predefined for host-dependent Fortran values:

SIZEOF_INTEGER
SIZEOF_INTEGER2
SIZEOF_REAL
SIZEOF_DOUBLE
SIZEOF_COMPLEX
SIZEOF_DBL_CPX
    

EXAMPLE

c Allocate n1 REAL samples
      integer n1
      real    trace(n1)
      pointer (ptr_trace,trace)
      ...
      ptr_trace = fdds_malloc8( dble(n1*SIZEOF_REAL) )
    

SEE ALSO

fdds_free Free memory
    

AUTHOR

Jerry Ehlers, EPTG (Oct 2006)