Le dim 24/10/2004 à 06:00, William Poetra Yoga H a écrit : [snip]
And I think these two functions suffice. But the question is, why do we have to make them inline? Why do the contents of r get scrambled up if we don't?
You're passing a struct by value. If you want the caller to have his structure to be modified, you need to pass it by ref.
Vincent