Quote:
um, smirc...whats the problem with using return? every class i've taken so far has told me to use return when i only have 1 value/stucture i need to get back to the calling function...
There's nothing wrong with using return. It's what you return that counts. You can return constants with no problems. You can return global variables with no problems. The thing is that you can't just return the value of a local variable and rely on the fact that it will keep its value even after the function has returned*. Like I said, you can get away with this 99.9% of the time but it will come back to haunt you eventually.