MemCom Reference Manual > MemCom ftn Fortran API > Dynamic Memory Manager (DMM) > mcf_dmm_reallocate

Name

mcf_dmm_reallocate — Reallocate DMM objects

Description

mcf_dmm_reallocate changes the logical size of an existing DMM object. The identifier is preserved during the operation. The size of the object may increase or decrease. Depending on the new size the address of the object in memory can change, but the content of the old object is preserved.

Unlike in older versions of MemCom mcf_dmm_reallocate requires ident to point to an existing object. If the object identified by ident does not exists an error is flagged.

Specification (Fortran)

subroutine mcf_dmm_reallocate(ident,newsize,status)

mcf_size newsize
integer*4 ident
integer*4 status

Parameters

ident

DMM identifier (input). ident must point to an existing object.

newsize

New logical size of DMM object (input).

status

Status code returned (output). Upon successful completion of the operation, the status value 0 is returned. A negative value is returned if an error has been detected. A positive value is returned if a warning has been issued.