Article View: comp.sys.atari.st
Article #6005Re: Lattice fwrite
From: R.D.Chafer
Date: Tue, 21 Nov 1989 12:28
Date: Tue, 21 Nov 1989 12:28
38 lines
1639 bytes
1639 bytes
>
>Date: 20 Nov 89 09:19:50 GMT
>From: eru!luth!sunic!mcsun!inria!loria!wiener.crin.fr!domen@bloom-beacon.mit.edu (Eric Domenjoud)
>Subject: BUG in FWRITE (LATTICE C)
>
>I'd like to report a bug I found in the function FWRITE of the library
>GEMLIB.BIN of LATTICE C. Writing 0xFF to a file causes an error.
>I've included the code of this function with some comments so that
>everybody can see the bug is.
>
>Did somebody already notice it?
>Does this bug really exist or only in my version ? (would be very strange)
>
>Anyway, be carefull when using this function.
>
>Eric
> [lots of code omitted]
>
First of all: I don't use Lattice C so I could be completely wrong.
Character 255 is quite often used as an EOF character, could this be a
possible source of problems?
Robert Chafer
=========================================================================
From: Robert Chafer
Computing Centre Telephone: +44 61 736 5843 x 672 or x7328,
University of Salford,
Salford M5 4WT
UK
E-mail:
JANET: chafer @ uk.ac.salford.sysc
ARPANET: chafer%uk.ac.salford.sysc @ nss.cs.ucl.ac.uk
BITNET: chafer%uk.ac.salford.sysc @ uk.ac
or chafer%uk.ac.salford.sysc%ukacrl.bitnet @ cunyvm.cuny.edu
Technical Details
Message-ID:
<21.Nov.89.12:28:28.A103A0@UK.AC.SALF.C>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!sysc.salford.ac.UK!R.D.ChaferShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!sysc.salford.ac.UK!R.D.Chafer From: R.D.Chafer@sysc.salford.ac.UK Newsgroups: comp.sys.atari.st Subject: Re: Lattice fwrite Message-ID: <21.Nov.89.12:28:28.A103A0@UK.AC.SALF.C> Date: 21 Nov 89 12:28:28 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 38