NAME
USAGE
call hpalloc(ptr, nw, ier, iabt)
DESCRIPTION
Dynamically allocates memory on the heap. A contiguous block of nw words of memory is allocated. Some extra bytes are allocated for management and integrity check purposes. (see hpdeallc, hpcheck). A word has the size of an INTEGER or REAL FORTRAN variable. The returned pointer may be used to point to any data type.
(click here for an example of use)ARGUMENTS
Pointer (FORTRAN POINTER type) than will be set to the address of the first word of the allocated block.
Number of words of memory to be allocated. The size of a word (4 bytes or 8 bytes) is compiler mode dependent, and can be further controlled via the iabt argument.
Integer variable (not used, kept for backward compatibility).
Integer variable. Usually 0. If iabt=8, 8 bytes words will be allocated (REAL *8).AUTHOR
Mario Lépine - RPNNOTES
Warning: on the NEC, the [-ptr word] f77sx option must be used (as implemented by f7732 & f7764). Debugging aids can be obtained via some environment variables such as DEBUG_MODE, INITMEM, BAD_POINTER.
SEE ALSO
( hpdeallc, memoirc, hpcheck, bkcheck, dmmsdbg)