Heya~

I've got a little problem with lite-c.

I want to set the value of a variable in another function without defining it globally. I could easily make the function returning the value, but the function already has a return value.

I thought about variable pointers and tried the following, but It doesn't work after all:

Code:
int someFunction(var var1, var var2, var* var3)
{
    // set var3 to a certain value
    var3 = 100;
    
    // do some stuff with var 1 and var 2 and return var 1
    ...
    return var1;
}

int anotherFunction()
{
    var someVariable; 
    var anotherVariable; 

    // do some stuff and call someFunction
    ...
    someVariable = someFunction(100,100, anotherVariable);

    // 
    ...
}



I expected that the "anotherVariable"-Variable would've been set to 100, but it was not.

What am I doing wrong, or is this even possible with lite-c?

Thanks in Advance,

Cheers
Roxas