Forelle,
I'm not sure I understand your question. Are you talking about how to return information from functions in C?
If so then this might help.
To return one value from a function do the following:
//Function Prototype
double f(long, double);
//Function call
value = f(count,summ);
//Function description
f(count,summ)
{
double amount=0.0;
amount = count * summ;
return amount;
}
To manipulate variables inside the function you need to use pointers. You can use references also I guess. Anyway, you could try something similar to what's in the included .txt file.
Grant
Grant M. Johnson
Project Engineer
LECO Corporation