GNU Pascal Homepage - gpc - gpc-announce - gpc-de - gpc-doc
Diese Seite auf deutsch

Mail #11286 (Unformatted/full headers)

Back to main page of archive

Previous mail   Next mail   Formatted
Overview  10 days   Subject   Date   Thread   Author  

From gpc-owner@gnu.de  Thu Jan 27 08:50:05 2005
Received: from mail.ncifcrf.gov ([129.43.100.101])
	by adele.gerwinski.de with esmtp (Exim 4.34)
	id 1Cu4Pg-0008Gq-LR
	for gpc@gnu.de; Thu, 27 Jan 2005 08:50:01 +0100
Received: from mail.NCIFCRF.GOV(129.43.100.101) by AVAS3.ncifcrf.gov via smtp
	 id 169d_b861023e_7037_11d9_83bc_0002b3c7efef;
	Thu, 27 Jan 2005 02:47:40 -0500 (EST)
Received: from strawberry.ncifcrf.gov (strawberry.NCIFCRF.GOV [129.43.6.74])
	by mail.ncifcrf.gov (8.12.10/8.12.10) with ESMTP id j0R7nDd0028259
	for <gpc@gnu.de>; Thu, 27 Jan 2005 02:49:13 -0500
Received: (from toms@localhost)
	by strawberry.ncifcrf.gov (8.12.10+Sun/8.12.10/Submit) id j0R7nCmu020133
	for gpc@gnu.de; Thu, 27 Jan 2005 02:49:12 -0500 (EST)
From: Tom Schneider <toms@ncifcrf.gov>
Message-Id: <200501270749.j0R7nCmu020133@strawberry.ncifcrf.gov>
Subject: Re: EOF is not true on reset empty file
In-Reply-To: From toms at "Jan 27, 2005 02:26:45 am"
To: gpc@gnu.de (gpc)
Date: Thu, 27 Jan 2005 02:49:12 -0500 (EST)
X-Mailer: ELM [version 2.4ME+ PL34 (25)]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Archive-Number: 200501/68
X-Sequence-Number: 4998

I wrote before:

> EOF is not true on a reset empty file.

for GPC.

gpc 20040516, based on gcc-3.3.3

I just found in the book 

PASCAL User Manual and Report, Fourth Edition
ISO Pascal Standard,
Kathleen Jensen and Niklaus Wirth
1991
page 158:

   "A file is called \emph{empty} if its length is zero."

As you can see in the previous email, I created two empty files with
echo -n "" > filename and then showed by three tests (file, ls and wc)
that they were empty.  In the GPC compiled program, I reset each file
and then tested them and found that each was not at eof.

Regards,

Tom

  Dr. Thomas D. Schneider
  National Cancer Institute
  Laboratory of Experimental and Computational Biology
  Molecular Information Theory Group
  Frederick, Maryland  21702-1201
  toms@ncifcrf.gov
  permanent email: toms@alum.mit.edu (use only if first address fails)
  http://www.lecb.ncifcrf.gov/~toms/

Previous mail   Next mail   Formatted
Overview  10 days   Subject   Date   Thread   Author  


Replies

Author Subject Date
Rick Engebretson EOF is not true on reset empty file 27 Jan 2005, 09:01:55
Maurice Lombardi EOF is not true on reset empty file 27 Jan 2005, 17:41:49
Maurice Lombardi EOF is not true on reset empty file 27 Jan 2005, 19:29:07
Emil Jerabek EOF is not true on reset empty file 28 Jan 2005, 13:27:52
Frank Heckenbach EOF is not true on reset empty file 28 Jan 2005, 14:16:50
jan.ruzicka@comcast.net EOF is not true on reset empty file 29 Jan 2005, 07:04:31

Back to main page of archive


Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.

Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.


This page was created by Crystal 0.999 (Linux 2.4.27/i686).