I sthis a problem? Basically I want to return
a pointer to a struct from a function,
so I create a temporary struct in the function, fill it and pass a pointer to it back.
i.e.
*mystruct=somefunction(x1,x2,...);
structuretype * somefunction(x1,x2,...){
structuretype temporary=....
return &temporary}
a pointer to a struct from a function,
so I create a temporary struct in the function, fill it and pass a pointer to it back.
i.e.
*mystruct=somefunction(x1,x2,...);
structuretype * somefunction(x1,x2,...){
structuretype temporary=....
return &temporary}