[comp.sys.atari.st] Fread system call

RUBIN@POLYGRAF.BITNET (David Rubin) (01/03/89)

I am having problems using the Fread system call.  This call will either
crash my system, or more likely result in 2-3, sometimes 10 bombs, depending
on the number of bytes I try to read.  Using MWC 2.0, the code is similar
to the following:

h = Fopen(filename,0);
Fread(h,4096L,buf);

h is an integer, and buf is a 4096-character array.
The file is opened properly, but the Fread bombs.  The file is binary,
if this makes any difference.

I would appreciate hearing from anyone who has successfully used the Fread
call and can help me out.  Thanks...
-------
David Rubin                        |     INTERNET: RUBIN@graf.poly.edu
Polytechnic University             |       BITNET: RUBIN@POLYGRAF
Brooklyn, NY                       |



#! rnews