AMX 86 Procedures
K
A
DAK
267
ajmgsz ajmgszPurpose Get Size of Memory Block
Used by n Task n IS P n Timer Procedure n Restart Procedure n Exit Procedure
Setup char *blockp;
long blksize;
int status;
.
.
status = ajmgsz(blockp, &blksize);
AX ES:BX DX:CX=
Where blockp is a pointer to a memory block allocated by ajmget or ajmgeh.
&blksize is a pointer to storage for the usable size in bytes of the memory
block at blockp.
Results Interrupts are disabled and then restored to their state at the time of the
call.
Status is returned.
AEROK = Call successful
blksize is the size of the block in bytes.
AERMIB = Invalid memory block pointer
AERMNU = Memory block not in use
If the call is not successful, the value of blksize is undefined.
See Also ajmget, ajmgeh