skip to main content

Library Routines : M$SIZE

M$SIZE
The M$SIZE library routine retrieves the size of a memory region previously allocated with the M$ALLOC library routine.
Syntax:
 CALL "M$SIZE" USING memAddress
Parameters:
Return code:
memSize can be any numeric data item. It receives the size of the memory region pointed by memAddress.
Examples:
Example - Allocate 8 bytes of memory, check if the memory size is 8
call "m$alloc" using 8, mem1
call "m$size" using mem1 giving msize
if msize not = 8
   display "Error allocating memory"

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left