-
Notifications
You must be signed in to change notification settings - Fork 9
MEM_foreach
BigETI edited this page May 4, 2018
·
1 revision
A method to traverse through allocated memory
MEM_foreach(index : Pointer:pointer)
new arr[10] = { 100, ... }, Pointer:pointer = MEM_new_arr(arr);
MEM_foreach(index : pointer)
{
printf("Value at index %d: %d", index, MEM_get_val(pointer, index));
}