Mail Archives: djgpp/1997/03/03/19:47:16
> > tbuf *buf_data;
> > bbuf *buf_data;
>
> This should be
>
> buf_data *tbuf;
> buf_data *bbuf;
Yes I know... that was a typo :)
> Are you trying to copy the pointers or copy _what bbuf_ is pointing to into
> what tbuf is pointing to?
Yep, that's what I was trying to do. However, I needed to swap tbuf and
bbuf... that was my problem... stupid mistake :)
> If it's the former, then the above is correct, but now what tbuf was
> originally pointing to is lost (you have no more references to it). If you
> want to copy what is being referenced by those pointers, then you need
>
> memcpy(tbuf, bbuf, video.max_x*sizeof(buf_data));
Yep... that's how I originally had it setup... but it was too slow so I
just used pointers. It's working now... yeah! :)
Jeff Weeks
--------------------------------------------
- Code X Software -
Programming to a Higher Power
email: mailto:pweeks AT execulink DOT com
web: http://www.execulink.com/~pweeks/
--------------------------------------------
- Raw text -