delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/09/25/13:43:55

Date: Fri, 25 Sep 92 10:00:54 PDT
From: thomas AT imagen DOT com (thomas (tom) mullin)
To: kuku AT acds DOT physik DOT rwth-aachen DOT de
Cc: kuku AT acds DOT physik DOT rwth-aachen DOT de, djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: binary files

> >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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019