I see no problem with what you want to do (if I understand it correctly) as long as you are not accessing global variables or using the static storage class within the function.
If you are only using local variables within the function (the variables are declared in the function body and you do not use the static keyword), then each time you call that function, new, unique copies of those variables are allocated on the stack and there is no collision between the various instances of the function.
If you use the static keyword or a global variable, the variable is allocated on the heap and only one copy exists, those are things you generally want to avoid unless you have a good reason for doing so.
Martin Fredrickson
Test Engineer
Northrop Grumman
Advanced Systems and Products
San Diego, CA 92128