🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #35736

Fread system call

#35736
From: David Rubin
Date: Tue, 03 Jan 1989 14:34
23 lines
1145 bytes
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  
Technical Details
Message-ID: <8505RUBIN@POLYGRAF>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!tut.cis.ohio-state.edu!rutgers!psuvax1!psuvm.bitnet!cunyvm!polygraf.bitnet!rubin

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!tut.cis.ohio-state.edu!rutgers!psuvax1!psuvm.bitnet!cunyvm!polygraf.bitnet!rubin
From: RUBIN@POLYGRAF.BITNET (David Rubin)
Newsgroups: comp.sys.atari.st
Subject: Fread system call
Message-ID: <8505RUBIN@POLYGRAF>
Date: 3 Jan 89 14:34:41 GMT
Organization: Polytechnic University Computing Center
Lines: 22