SCULIB_FREE
release virtual memory
Description:
This routine frees virtual memory obtained
by SCULIB_MALLOC.
If status is bad on entry the routine will return immediately.
If START_PTR is not equal to 0 then:
-
The sentinel integers above and below the used piece of memory will be checked against the values
they were set to by SCULIB_MALLOC.
-
PSX_FREE will be called to free the virtual memory. If that’s successful START_PTR and END_PTR
will be set to the bad value.
-
If either of the sentinel integers was corrupted then an error will be reported and bad status returned.
Invocation
CALL SCULIB_FREE (NAME, START_PTR, END_PTR, STATUS)
Arguments
NAME =
CHARACTER∗(∗)
(Given)
name associated with VM
START_PTR = INTEGER (Given and returned)
pointer to
beginning of virtual memory
END_PTR = INTEGER (Given and returned)
pointer to end of virtual
memory
STATUS = INTEGER (Given and returned)
global status
Copyright
Copyright
©1995,1996,1997,1998,1999 Particle Physics and Astronomy Research Council. All Rights Reserved.