|
A memory function that initializes a memory blocks.
Syntax: MEMSET(ptr, char,
size) DIM IntArray(1 TO 10) AS
INTEGER MEMSET(VARPTR(I(1)), 0,
10*SIZEOF(INTEGER))
Details: You can use this
instead of INITARRAY for large arrays. For 0 based arrays you must
add 1 to the SIZEOF value like this DIM IntArray(0 TO 10) AS
INTEGER MEMSET(VARPTR(I(1)), 0, (10+1) *
SIZEOF(INTEGER))
|
|