Important: Please see this very much related question: Return multiple values in C++.
I\'m after how to do the same thing in ANSI C? Would you use a
I think that when you return a struct pointer, you probably need to manually find some memory for that. Addresses in parameter list are allocated on the stack, which is way faster.