🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #6353

Re: How is fread/fwrite implemented ?

#6353
From: "Malcolm S. Muir"
Date: Tue, 17 Nov 1992 11:38
17 lines
1459 bytes
In article <1992Nov16.140538.165141@dstos3.dsto.gov.au> egg@dstos3.dsto.gov.au writes:

>Does anyone know how the fread/fwrite functions in Borland C are implemented.
>I would like to write a small model function to read/write to far data.

fread/fwrite have nothing to do with far data !!!  They are functions
for reading / writing data to / from a stream.

Just declare the data variables you are trying to read as far.

-- 
=============================================================================
Malcolm S. Muir                              EMAIL: malcolm@muir.demon.co.uk
Sunderland                                   CIX: mmuir BIX: mmuir
England                                      CSERVE: 100012,31
======================= PGP 2.0 Public Key Available ========================
Technical Details
Message-ID: <722000326snz@muir.demon.co.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!cs.utexas.edu!hermes.chpc.utexas.edu!news.utdallas.edu!corpgate!bnrgate!bnr.co.uk!pipex!demon!muir.demon.co.uk!malcolm
References: <1992Nov16.140538.165141@dstos3.dsto.gov.au>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
From: malcolm@muir.demon.co.uk ("Malcolm S. Muir")
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!cs.utexas.edu!hermes.chpc.utexas.edu!news.utdallas.edu!corpgate!bnrgate!bnr.co.uk!pipex!demon!muir.demon.co.uk!malcolm
Subject: Re: How is fread/fwrite implemented ? 
Distribution: world
References: <1992Nov16.140538.165141@dstos3.dsto.gov.au>
Organization: Muir
Reply-To: malcolm@muir.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.18)
Lines: 17
Date: Tue, 17 Nov 1992 11:38:46 +0000
Message-ID: <722000326snz@muir.demon.co.uk>
Sender: usenet@gate.demon.co.uk