delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/12/19/02:47:32

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Trace-PostClient-IP: 68.147.177.20
From: Brian Inglis <Brian DOT Inglis AT SystematicSW DOT Invalid>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: v2.953 Additional Observations
Organization: Systematic Software
Message-ID: <d2cas09bk1vf4p7v5rse5k6j6hurmci9pe@4ax.com>
References: <boo8s01asckvrn9mb24hdl9fkjjq3bqq1g AT 4ax DOT com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Lines: 21
Date: Sun, 19 Dec 2004 07:40:31 GMT
NNTP-Posting-Host: 24.71.223.147
X-Complaints-To: abuse AT shaw DOT ca
X-Trace: pd7tw2no 1103442031 24.71.223.147 (Sun, 19 Dec 2004 00:40:31 MST)
NNTP-Posting-Date: Sun, 19 Dec 2004 00:40:31 MST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Sat, 18 Dec 2004 12:17:45 -0500 in comp.os.msdos.djgpp, Radical
NetSurfer <RadSurfer AT yahoo DOT com> wrote:

>Apparently we are seeing that using    fread()  
>and reading a size that exceeds the end_of_file,
>causes ZERO elements to be returned; this
>does not seem to be what most people are expecting:
>
>Example 1:
>
>aFile.bin, Size = 256 bytes
>   (an arbitrary file, containing random characters,
>     of a specific size, purely for example)

Are you opening the file in binary mode "rb"? 

-- 
Thanks. Take care, Brian Inglis 	Calgary, Alberta, Canada

Brian DOT Inglis AT CSi DOT com 	(Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca)
    fake address		use address above to reply

- Raw text -


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