[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linux games programming tutorial-part2



Alexandre Courbot wrote:

> Yes, but the reason I use this is that the pointer is void typed. So I
> can't
> use target[i], excepted by forcing the type ( (char*)target[i]=buf). But
> it is possible and should be better here, I'll fix it and add a comment.

I was wrong again; the exact syntax is *((char*)target+i)=buf;

Alex.