Mail Archives: djgpp/1992/09/25/13:43:55
> >If you never read/rwite larger than 512 bytes, fread/fwrite work. Try breaking
> >up large reads/writes into smaller chunks.
> Huh? fread/fwrite only in 512 bytes. Who's saying this?
I ported a large program that used fread/fwrite from gcc on the sun to
djgcc. I ran into problems reading font files. I traced the problem done
to the fread/fwrite not working correctly for sizes over 512 bytes.
I changed my fread/fwrites to do multiple 512 freads/fwrites. Everything
worked fine then.
I was using the first port of djgcc. I don't have my PC here at the moment,
or I would double check this with djgcc 1.08.
Thomas
- Raw text -