Mail Archives: djgpp/2000/11/06/05:36:23
-----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 -