Hi all,
Quick question: What is the best way to have multiple return values from
a function? Would that be placing these into a structure and returning
that to the caller?
Thanks.
-bw
Hi all,
Quick question: What is the best way to have multiple return values from
a function? Would that be placing these into a structure and returning
that to the caller?
Thanks.
-bw
Yup, that's what the C front-end currently does. It transforms functions
like this:
Struct foo()
into:
void foo(Struct *S)
And foo fills in the indicated structure.
-Chris