[SDL] 0xDEADBEEF ???

jvalenzu at icculus.org jvalenzu at icculus.org
Wed Aug 28 14:55:01 PDT 2002


Murlock writes:
 > jvalenzu at icculus.org wrote:
 > >
 > > I don't think valid pointers end in 0x5 on any platform SDL supports.
 > 
 > Why ?
 > if this pointer is used for char (or byte), I want to check all the byte !
 > (with a
 > unsigned char *a =(unsigned char*) sdl->pixel;
 > for(nb=0; nb<sdl->pitch; nb++, a++ )
 > [...]
 > )
 > so 0x5 is valid... at least for data

Yeah, I was thinking about word aligned data.  Cons cells on the
brain.

--
jv





More information about the SDL mailing list