Sorry if you misunderstood me but like I've said previously: this is not what I'm looking for.
in your example you're accessing the global array 'vars' in the function:
void print_var(var **input_array, unsigned int index_x, unsigned int index_y)
{
var output_var = vars[index_x][index_y];
however, I want to access it by using the array as a function argument.
void print_var(var **input_array, unsigned int index_x, unsigned int index_y)
{
var output_var = input_array[index_x][index_y];