J
Jim Ford
I have the following code:
A * F(B * x)
{
A * y = (A *) *x->data ;
return y ;
}
Is this legal? Do you need more information about the details of the A
and B structures in order to assess this?
This is just the skeleton of some code (removing details irrelevant here)
that I have. The code works as expected, but that
return y ;
line worries me. Will the value of y after F returns be as expected under
all circumstances?
A * F(B * x)
{
A * y = (A *) *x->data ;
return y ;
}
Is this legal? Do you need more information about the details of the A
and B structures in order to assess this?
This is just the skeleton of some code (removing details irrelevant here)
that I have. The code works as expected, but that
return y ;
line worries me. Will the value of y after F returns be as expected under
all circumstances?