Skip to content

MEM_foreach_ex

BigETI edited this page May 4, 2018 · 1 revision

Description

A method to traverse through allocated memory

Syntax

MEM_foreach_ex(index, size : Pointer:pointer)

Example

new arr[10] = { 100, ... }, Pointer:pointer = MEM_new_arr(arr);
MEM_foreach(index, size : pointer)
{
	printf("[%d] Value at index %d: %d", size, index, MEM_get_val(pointer, index));
}