I'm not sure who maintains the man pages for Linux, but those for fread and
fwrite wrongly describe the return values.
The functions take a size parameter and a number-of-elements parameter.
They return the NUMBER OF ELEMENTS read or written, NOT the number of
characters.
Karl
-------------------------------------------------------------------------
Vitrociset S.p.A. Tel : +(49) 6151 902041
European Space Agency Fax : +(49) 6151 904041