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

Re: Taking a part from character



Jeff Read <bitwize@geocities.com> wrote:

> > And I want to get those bytes(?) marked with * to a
> > char[2*3] car.
> 
> Looks like you're gonna have to copy it manually, e.g.:
> 
> unsigned char car[2*3];
> int x,y;
> for(y=0;y<=2;y++) {
>   for(x=0,x<=1,x++) {
>     car[y * 2 + x] = cars[(y+1)*9+(x+2)];
>   }
> }
Want to explain?