From: Mario M. <mr....@gm...> - 2017-09-22 19:13:51
|
> > What I meant was: Why has your intersection_t struct an intersect member? > You don't use it. > I wanted to use it as a surrogate for your NULL return value but what was > your reason? > I just didn't really know what that intersect member was in your example. So I just set it to 0 in the hopes that sometime later I would understand it's use xD > I wanted to show you your options because only when you know them you will > be able to make a well reasoned decision. And, Vasco showed you a third > one. Now, it's on you to decide (not on me). > In the end I decided to pass a pointer and leave all memory management to the caller. Thank you again for the help and suggestions! |