6 Feb
2007
6 Feb
'07
6:41 a.m.
Rich,
The more portable way to handle it would be to let the compiler do whatever padding in the structure it thinks is good in order to satisfy the alignment constraints of the processor and then do fread() on the individual members one at a time from the file instead of doing fread() on the entire structure, but we can worry about that later. I'll add a TODO: comment in the code there so we don't have to rediscover this again later the hard way.
Take a look at the decode_fractal_info() routine in the general.c file used by xfractint. Jonathan