Explanation, please!
der Mouse
mouse at mcgill-vision.UUCP
Sun Sep 11 21:08:50 AEST 1988
In article <339 at quintus.UUCP>, jabir at quintus.uucp (Jabir Hussain) writes:
> In article <9064 at pur-ee.UUCP> hankd at pur-ee.UUCP (Hank Dietz) writes:
>> *(((struct t512 *) q)++) = *(((struct t512 *) p)++);
>> but, for some unknown reason, the VAX C compiler didn't like that.
> one portable way around that is to do something like:
[summarized]
> union { struct { int t[512]; } *t512; ...; char *caddr; }
[then use ++ on .t512]
This falls hopelessly flat if char * and struct {...} * have
significantly different representation.
der Mouse
old: mcgill-vision!mouse
new: mouse at larry.mcrcim.mcgill.edu
More information about the Comp.lang.c
mailing list