
7 Oct
2013
7 Oct
'13
12:23 a.m.
Attila Lendvai <attila.lendvai@gmail.com> wrote:
[this time to the list also]
CV_INLINE CvPoint cvPoint( int x, int y ) { CvPoint p;
p.x = x; p.y = y;
return p; }
it's been a while since i was fooling around with C... but 'p' is a local variable on the stack, and if you return its address, then it will point into nowhere when the C function's stack frame is unwound.
This is return by value, not address... -- Daniel