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

Re: Linux games programming tutorial-part2



Alexandre Courbot wrote:

>> 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;

Or ((char *) target) [i] = buf;
Perhaps slightly more readable.


	Christian
--

Drive A: not responding...Formatting C: instead