delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/06/05:36:23

Date: Mon, 6 Nov 2000 12:59:55 +0100 (CET)
From: Dieter Demerre <ext DOT dieter DOT demerre AT siemens DOT be>
X-Sender: dd AT baby DOT siemens DOT ebp DOT ii3 DOT b-rail DOT be
To: djgpp AT delorie DOT com
Subject: Re: EOF
In-Reply-To: <3a03ddb1$1@news.starhub.net.sg>
Message-ID: <Pine.LNX.4.10.10011061255580.18158-100000@baby.siemens.ebp.ii3.b-rail.be>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

-----BEGIN PGP SIGNED MESSAGE-----

On Sat, 4 Nov 2000, Michelle wrote:

> What is EOF char for me?
> 
> I am using pentium 166MMX.
> Is EOF OS dependen or HW dependent?

EOF is a system (compiler / library) dependent constant.  Since int is at
least 16 bit, reading one byte from a file and returning an int gives the
reading-functions the possibility to return more information than only the
data read.  EOF is a constant that is distinguishable from any possible
byte being read, and thus you should not worry about it's actual value.
If you really want to discover it, just consult stdio.h OR try
- ---<snip>---
#include <stdio.h>
int main(void)
{
  printf("EOF == %04x",EOF);
  return 0;
}
- ---</snip>--

Greetings and good luck !

******* Groetjes vanwege ***** Greetings From *******
Dieter Demerre - http://www.angelfire.com/de/ddemerre
  ddemerre AT acm DOT org - ext DOT dieter DOT demerre AT siemens DOT be

Although this private and confidential e-mail has been sent 
to you through a personal Siemens account, it does NOT 
represent any official opinion of Siemens.

If you are not the intended recipient of this e-mail and 
have received it in error, please notify the sender by 
replying with 'received in error' as the subject and then 
delete it from your mailbox.

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8

iQCVAwUBOgadRq5coohL2ygZAQGxjgQApvrjbjFt8Ch0BV7L1z3M0yiFUX24IxrH
s1oZsa2S0dv5DRcEaS2gOn8a0+Bffd1netK7WsXxMQIq1k0iPGbx62fmPAnhxD9m
T0hxwdr9z3EkunGJz6JvByZmTkwfAXnzc6db39b17/ScR2nb8MKgWW3kHzTsPvQY
0BlsWKERFTM=
=L5I6
-----END PGP SIGNATURE-----


- Raw text -


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