Re: ISO: help porting C code to 64 bit linux platform



Jan Panteltje wrote:

I know it has been argued here that reading in a structure from a file is
_bad_. But it is done frequently in code I come across.

There are lots of wrong code anyway. But is better to take advice from good
one. Even Microsoft some time code wrote code that assumes int were 2 bytes
long, thinking that the people in the compiler group will never change that
to not break his code. They do. (Source: "Writing solid code" by Steve
Maguire, Microsoft Press). And surely many people do the same telling "Hey,
even Microsoft do it that way".

--
Salu2
.