You can approach this several different ways, the pointer way:
Code:
void function ( int *varOne, int *varTwo );
/* The call */
function ( foo, bar );
The non-pointer return one way:
Code:
int function ( int varOne, int VarTwo ) {
if ( something for varOne ) {
/* Set the value */
return varOne;
}
else if ( something for varTwo ) {
/* Set the value */
return varTwo;
else
return /* error value goes here */
}
Or you can just wrap both variables in a stuct and return that.
There are many ways, but generally if you need to return two values your design is flawed and should be looked at.
-Prelude