Code:
function Add (int* myResult, int a, int b)
{
	*myResult = a + b;
}

int myResult = 0;
Add(&myResult, 5, 7);



The reference operator isn't actually needed because lite-c can detect if a function needs a variable or a pointer to the variable.

Last edited by DJBMASTER; 10/01/09 17:37.