D
David Buck
If I have the following setup
void Vdlog_SetVport(int reason)
{
static double lx,ly,hx,hy;
Vmath_GetBox(&lx,&ly,&hx,&hy);
....
}
void Vmath_GetBox(double *lx,double *ly,double *hx,double *hy)
{
.....
}
Will the pointers passed to Vmath_GetBox be out of scope (I have tried and
it causes a crash) ?
Ie are static variables only visible within the routine to which they are
declared ?
void Vdlog_SetVport(int reason)
{
static double lx,ly,hx,hy;
Vmath_GetBox(&lx,&ly,&hx,&hy);
....
}
void Vmath_GetBox(double *lx,double *ly,double *hx,double *hy)
{
.....
}
Will the pointers passed to Vmath_GetBox be out of scope (I have tried and
it causes a crash) ?
Ie are static variables only visible within the routine to which they are
declared ?