Re: Returning a struct from a function
You can't return a struct from a function, unfortunately. As for the pass by reference thing, think of it as a pointer.
What I tend to do is use the & operator to pass structs to my functions that I want modified.
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page