Skip to content

MEM_foreach_rev_ex

BigETI edited this page May 4, 2018 · 1 revision

Description

A method to traverse through allocated memory in reverse

Syntax

MEM_foreach_rev_ex(index, size : Pointer:pointer)

Example

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