Questions about Files?

fread, fscanf and size of struct

Re: fread, fscanf and size of struct

par Siba Haidar,
Nombre de réponses : 0
You got lucky by chance.
We discussed luck before.
The manual correction will remove the points because
In general
sizeof(point3d) >= 3* sizeof(double)

And not strictly =

So on a different platform successive reading of this form may fail to read the written data as it was.