structure element offsets

Henry Spencer henry at utzoo.UUCP
Tue Dec 23 10:28:38 AEST 1986


> > Or perhaps you were thinking of (type *)(long)x == x ?  That would
> > make me nervous but it is technically valid.
> 
> Is it?  [... Maybe long isn't long enough. ...]

This is why it makes me nervous.  I would expect trouble in particular
on machines with long and pointers the same size *except* that char
pointers are longer because the original pointer format didn't provide
addressing to the byte.
-- 
				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,decvax,pyramid}!utzoo!henry



More information about the Comp.lang.c mailing list